summaryrefslogtreecommitdiff
path: root/tests/admin_docs/tests.py
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2016-06-18 16:39:32 +0200
committerTim Graham <timograham@gmail.com>2016-06-18 10:39:49 -0400
commit31a789f646d0d9af3e8464f2f9a06aa018df5f90 (patch)
treede4c5f5a2115b8a566c00da16efa950cc42dd41f /tests/admin_docs/tests.py
parent1213ef2b182261ee690eba484ac7a929ff4707c9 (diff)
[1.10.x] Fixed #24931 -- Made namespaced RegexURLResolvers populate callback strings.
Fixed a regression in 2f16ff5a6cbd71fc6c50e88e4087f3657222e90e. Thanks Tim Graham for the review. Backport of 625b8e9295d79650208bfb3fca8bf9e6aaf578e4 from master
Diffstat (limited to 'tests/admin_docs/tests.py')
-rw-r--r--tests/admin_docs/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py
index ec35f92627..e3091738a8 100644
--- a/tests/admin_docs/tests.py
+++ b/tests/admin_docs/tests.py
@@ -88,6 +88,12 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
# View docstring
self.assertContains(response, 'Base view for admindocs views.')
+ @override_settings(ROOT_URLCONF='admin_docs.namespace_urls')
+ def test_namespaced_view_detail(self):
+ url = reverse('django-admindocs-views-detail', args=['admin_docs.views.XViewClass'])
+ response = self.client.get(url)
+ self.assertContains(response, '<h1>admin_docs.views.XViewClass</h1>')
+
def test_view_detail_illegal_import(self):
"""
#23601 - Ensure the view exists in the URLconf.