summaryrefslogtreecommitdiff
path: root/tests/middleware/urls.py
diff options
context:
space:
mode:
authorKevin Christopher Henry <k@severian.com>2013-10-03 03:20:04 -0400
committerTim Graham <timograham@gmail.com>2014-04-23 20:12:34 -0400
commit91afc00513bd2fa6302ea2be35e1f842cbd5fd38 (patch)
treed46dd1b8dd88af40488d6e9290be8a45426f3bb3 /tests/middleware/urls.py
parent0aa4c6c3911fd38567ea2d20c425d1e81e859ee1 (diff)
Fixed #21157 -- Fixed problems with ResolverMatch
- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
Diffstat (limited to 'tests/middleware/urls.py')
-rw-r--r--tests/middleware/urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/middleware/urls.py b/tests/middleware/urls.py
index c429bb90fe..7d6689590c 100644
--- a/tests/middleware/urls.py
+++ b/tests/middleware/urls.py
@@ -1,7 +1,7 @@
from django.conf.urls import url
urlpatterns = [
- url(r'^noslash$', 'view'),
- url(r'^slash/$', 'view'),
- url(r'^needsquoting#/$', 'view'),
+ url(r'^noslash$', 'middleware.views.empty_view'),
+ url(r'^slash/$', 'middleware.views.empty_view'),
+ url(r'^needsquoting#/$', 'middleware.views.empty_view'),
]