trying to find nose.tools.assert_raises_regexp
qhfgva
qhfgva at gmail.com
Fri May 23 18:09:00 EDT 2014
$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose.tools
>>> nose.__version__
'1.3.3'
>>> nose.tools.assert_raises_regexp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'assert_raises_regexp'
I see people using code like the following
from nose.tools import assert_equals, assert_raises_regexp
(the above line is from diy-lisp - a python project on githup)
but I'm not able to find a version of nose that explicitly mentions this function.
perplexed...
More information about the Python-list
mailing list