擅长:python、mysql、java
<p>您始终可以将自己的断言方法添加到TestCase类中:</p>
<pre><code>def assertSequenceEqual(self, it1, it2):
self.assertEqual(tuple(it1), tuple(it2))
</code></pre>
<p>或者看看2.7是如何定义它的:<a href="http://hg.python.org/cpython/file/14cafb8d1480/Lib/unittest/case.py#l621" rel="noreferrer">http://hg.python.org/cpython/file/14cafb8d1480/Lib/unittest/case.py#l621</a></p>