﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15988	django.contrib.contenttypes.tests.ContentTypesTests.test_shortcut_view doesn't handle ABSOLUTE_URL_OVERRIDES	Patrick Altman	nobody	"When using ABSOLUTE_URL_OVERRIDES setting, the shortcut_view_test causes test failures.

For example, I have:

{{{
ABSOLUTE_URL_OVERRIDES = {
    ""auth.user"": lambda o: ""/profiles/profile/%s/"" % o.username,
}
}}}

and so when running ./manage.py test I get:

{{{
======================================================================
FAIL: test_shortcut_view (django.contrib.contenttypes.tests.ContentTypesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/patrick/.virtualenvs/vv/lib/python2.7/site-packages/django/contrib/contenttypes/tests.py"", line 70, in test_shortcut_view
    response._headers.get(""location"")[1])
AssertionError: u'http://mydomain.o1.gondor.io/users/john/' != 'http://mydomain.o1.gondor.io/profiles/profile/john/'
}}}


I expected this test to handle the case of ABSOLUTE_URL_OVERRIDES being used.  

Attached is my patch to the test to match this expectation.


"	Cleanup/optimization	closed	contrib.contenttypes	1.3	Normal	fixed			Accepted	1	0	0	1	0	0
