Help with unittest2
Daniel Laird
daniel.j.laird at googlemail.com
Thu Dec 13 10:03:27 EST 2012
All,
I am new to python and am stuck with python 2.6 (Ubuntu 10.04 and dont want to force switch to 2.7)
I want to use assertListEqual and other new test functions.
However
I do am import unittest2 as unittest
The code does not fail but any use of the new functions results in:
NameError: global name 'assertListEqual' is not defined
What am I doing wrong?
Do I need to change something else? The docs seem to imply what I have done is enough.
Hope you can help
Cheers
Dan L
More information about the Python-list
mailing list