Bad test in django.contrib.contenttypes.tests.ContentTypesTests
example.com is hardcoded in test_shortcut_view
. We have fixture which changes site name, so this test failes:
Installing json fixture 'initial_data' from absolute path.
Installed 6 object(s) from 1 fixture(s)
.............................................................................F.............................................................................................................................
======================================================================
FAIL: test_shortcut_view (django.contrib.contenttypes.tests.ContentTypesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/contenttypes/tests.py", line 67, in test_shortcut_view
self.assertEqual("http://example.com/users/john/", response._headers.get("location")[1])
AssertionError: 'http://example.com/users/john/' != 'http://test.ru/users/john/'
----------------------------------------------------------------------
Ran 203 tests in 2.574s
FAILED (failures=1)
Destroying test database 'default'...
Looks reasonable to me.