Help with unittest2
Daniel Laird
daniel.j.laird at googlemail.com
Thu Dec 13 10:36:59 EST 2012
On Thursday, December 13, 2012 3:09:58 PM UTC, Miki Tebeka wrote:
> 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)).
Thanks, however I thought by using unittest2 it added the new 2.7 features to 2.6?
More information about the Python-list
mailing list