擅长:python、mysql、java
<p>对于unittest模块,您需要使用它们内置的断言方法。而不仅仅是写作</p>
<pre><code>assert a not in b
</code></pre>
<p>你写的</p>
^{pr2}$
<p>例如。有关所有assert方法的列表,请查看以下内容:
<a href="https://docs.python.org/2/library/unittest.html#unittest.TestCase" rel="nofollow noreferrer">https://docs.python.org/2/library/unittest.html#unittest.TestCase</a></p>