Help with unittest2
miki.tebeka at gmail.com
Thu Dec 13 16:09:58 CET 2012
On Thursday, December 13, 2012 7:03:27 AM UTC-8, Daniel Laird wrote:
> I do am import unittest2 as unittest
> NameError: global name 'assertListEqual' is not defined
According to the docs (http://docs.python.org/2/library/unittest.html#unittest.TestCase.addTypeEqualityFunc) assertListEqual and friends was added in 2.7.
You can use assertEuqal, or if you don't care about order assertEqual(sorted(a), sorted(b)).
More information about the Python-list