diff options
author | Tim Graham <timograham@gmail.com> | 2017-09-13 15:24:12 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-09-13 16:32:03 -0400 |
commit | ee4043f7355f077583ca4c1749db7d5211f0855e (patch) | |
tree | 8483c316d4134b013abe2ccfb0b931f039b1ac65 /tests/urlpatterns_reverse | |
parent | 0214f367bc84d7217e42ae0441d500d31c6a5b78 (diff) | |
download | django-ee4043f7355f077583ca4c1749db7d5211f0855e.tar.gz |
Refs #28593 -- Moved django.conf.urls.include() to django.urls().
The old location remains for backwards compatibility. Documentation
will be updated separately along with the rest of the URL routing changes.
Diffstat (limited to 'tests/urlpatterns_reverse')
-rw-r--r-- | tests/urlpatterns_reverse/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index 7f565fe487..91ad5a867f 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -1158,19 +1158,19 @@ class IncludeTests(SimpleTestCase): def test_include_namespace(self): msg = ( - "Specifying a namespace in django.conf.urls.include() without " - "providing an app_name is not supported." + 'Specifying a namespace in include() without providing an ' + 'app_name is not supported.' ) with self.assertRaisesMessage(ImproperlyConfigured, msg): include(self.url_patterns, 'namespace') def test_include_4_tuple(self): - msg = 'Passing a 4-tuple to django.conf.urls.include() is not supported.' + msg = 'Passing a 4-tuple to include() is not supported.' with self.assertRaisesMessage(ImproperlyConfigured, msg): include((self.url_patterns, 'app_name', 'namespace', 'blah')) def test_include_3_tuple(self): - msg = 'Passing a 3-tuple to django.conf.urls.include() is not supported.' + msg = 'Passing a 3-tuple to include() is not supported.' with self.assertRaisesMessage(ImproperlyConfigured, msg): include((self.url_patterns, 'app_name', 'namespace')) |