Running the Unittests for Django the following errors occur.
$python runtests.py --settings=testdj.settings
======================================================================
ERROR: Request a page that is protected with @login, but use bad credentials
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/www/local/django/tests/modeltests/test_client/models.py", line 101, in test_view_with_bad_login
self.assertFalse(response)
AttributeError: 'ClientTest' object has no attribute 'assertFalse'
======================================================================
ERROR: Request a page that is protected with @login_required
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/www/local/django/tests/modeltests/test_client/models.py", line 92, in test_view_with_login
self.assertTrue(response)
AttributeError: 'ClientTest' object has no attribute 'assertTrue'
======================================================================
FAIL: POST an empty dictionary to a view
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/www/local/django/tests/modeltests/test_client/models.py", line 53, in test_empty_post
self.assertEqual(response.status_code, 200)
File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: 500 != 200
----------------------------------------------------------------------
Ran 68 tests in 6.298s
FAILED (failures=1, errors=2)