Andres, It is not really bug. This method (assertIsNone) exists in >= 2.7 version of Python. But, ok, I have replaced it with assertEqual(x, None). Fix is in the trunk.
[0] http://docs.python.org/library/unittest#unittest.TestCase.assertIsNone On 05/29/2012 08:57 AM, Andres Riancho wrote: > Taras, > > I was running all the unit-tests today and found out that the ones > for history.py have a bug, this is what I'm seeing: > > dz0@dz0-laptop:~/workspace/w3af$ nosetests > --doctest-result-variable=_test_res_ --rednose --with-doctest > --doctest-tests core/data/db/tests/ > ...................XX....... > ----------------------------------------------------------------------------- > 1) ERROR: test_clear (test_history.TestHistoryItem) > > Traceback (most recent call last): > core/data/db/tests/test_history.py line 131 in test_clear > self.assertIsNone(h2) > AttributeError: 'TestHistoryItem' object has no attribute 'assertIsNone' > > ----------------------------------------------------------------------------- > 2) ERROR: test_delete (test_history.TestHistoryItem) > > Traceback (most recent call last): > core/data/db/tests/test_history.py line 114 in test_delete > self.assertIsNone(h2) > AttributeError: 'TestHistoryItem' object has no attribute 'assertIsNone' > > > ----------------------------------------------------------------------------- > 28 tests run in 11.3 seconds. > 2 errors (26 tests passed) > > Could you please fix them? Thanks! > > Regards, -- Taras http://oxdef.info ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ W3af-develop mailing list W3af-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-develop