diff options
author | Tim Graham <timograham@gmail.com> | 2015-08-17 13:45:07 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:09 -0400 |
commit | 785cc71d5b3300e2702b0b2fc7316e58ca70b563 (patch) | |
tree | dc526b6b3df79c0da82694f0879713f33c0dee3c /tests/resolve_url | |
parent | d79122f40ba2016b1a943e2e1ba46984b2ef99ad (diff) | |
download | django-785cc71d5b3300e2702b0b2fc7316e58ca70b563.tar.gz |
Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline.
Diffstat (limited to 'tests/resolve_url')
-rw-r--r-- | tests/resolve_url/tests.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/resolve_url/tests.py b/tests/resolve_url/tests.py index d0c9d74abe..52e800a8c0 100644 --- a/tests/resolve_url/tests.py +++ b/tests/resolve_url/tests.py @@ -3,9 +3,8 @@ from __future__ import unicode_literals from django.contrib.auth.views import logout from django.core.urlresolvers import NoReverseMatch, reverse_lazy from django.shortcuts import resolve_url -from django.test import SimpleTestCase, ignore_warnings, override_settings +from django.test import SimpleTestCase, override_settings from django.utils import six -from django.utils.deprecation import RemovedInDjango110Warning from .models import UnimportantThing @@ -51,8 +50,8 @@ class ResolveUrlTests(SimpleTestCase): def test_view_function(self): """ - Tests that passing a view name to ``resolve_url`` will result in the - URL path mapping to that view name. + Tests that passing a view function to ``resolve_url`` will result in + the URL path mapping to that view name. """ resolved_url = resolve_url(logout) self.assertEqual('/accounts/logout/', resolved_url) @@ -66,13 +65,12 @@ class ResolveUrlTests(SimpleTestCase): self.assertIsInstance(resolved_url, six.text_type) self.assertEqual('/accounts/logout/', resolved_url) - @ignore_warnings(category=RemovedInDjango110Warning) def test_valid_view_name(self): """ - Tests that passing a view function to ``resolve_url`` will result in - the URL path mapping to that view. + Tests that passing a view name to ``resolve_url`` will result in the + URL path mapping to that view. """ - resolved_url = resolve_url('django.contrib.auth.views.logout') + resolved_url = resolve_url('logout') self.assertEqual('/accounts/logout/', resolved_url) def test_domain(self): |