Code

Ticket #13260: t13260-test.diff

File t13260-test.diff, 839 bytes (added by russellm, 4 years ago)

Test case demonstrating problem

Line 
1diff -r e8e099e867f1 tests/regressiontests/urlpatterns_reverse/tests.py
2--- a/tests/regressiontests/urlpatterns_reverse/tests.py        Fri Apr 02 14:44:16 2010 +0000
3+++ b/tests/regressiontests/urlpatterns_reverse/tests.py        Fri Apr 02 22:51:21 2010 +0800
4@@ -68,6 +68,8 @@
5     ('headlines', '/headlines/2007.5.21/', [], dict(year=2007, month=5, day=21)),
6     ('windows', r'/windows_path/C:%5CDocuments%20and%20Settings%5Cspam/', [], dict(drive_name='C', path=r'Documents and Settings\spam')),
7     ('special', r'/special_chars/+%5C$*/', [r'+\$*'], {}),
8+    ('special', r'/special_chars/some%20resource/', [r'some resource'], {}),
9+    ('special', r'/special_chars/10%25%20complete/', [r'10% complete'], {}),
10     ('special', NoReverseMatch, [''], {}),
11     ('mixed', '/john/0/', [], {'name': 'john'}),
12     ('repeats', '/repeats/a/', [], {}),