diff --git a/django/contrib/contenttypes/tests.py b/django/contrib/contenttypes/tests.py
index b6b1c50..577dc36 100644
a
|
b
|
class ContentTypesTests(TestCase):
|
65 | 65 | |
66 | 66 | if Site._meta.installed: |
67 | 67 | current_site = Site.objects.get_current() |
| 68 | |
| 69 | expected = "/users/john/" |
| 70 | override = settings.ABSOLUTE_URL_OVERRIDES.get("%s.%s" % (obj._meta.app_label, obj._meta.module_name)) |
| 71 | if override: |
| 72 | expected = override(obj) |
| 73 | |
68 | 74 | response = shortcut(request, user_ct.id, obj.id) |
69 | | self.assertEqual("http://%s/users/john/" % current_site.domain, |
| 75 | self.assertEqual("http://%s%s" % (current_site.domain, expected), |
70 | 76 | response._headers.get("location")[1]) |
71 | 77 | |
72 | 78 | Site._meta.installed = False |
73 | 79 | response = shortcut(request, user_ct.id, obj.id) |
74 | | self.assertEqual("http://Example.com/users/john/", |
| 80 | self.assertEqual("http://Example.com%s" % expected, |
75 | 81 | response._headers.get("location")[1]) |