Ticket #13260: t13260-test2.diff
File t13260-test2.diff, 1.6 KB (added by , 15 years ago) |
---|
-
tests/regressiontests/urlpatterns_reverse/tests.py
68 68 ('headlines', '/headlines/2007.5.21/', [], dict(year=2007, month=5, day=21)), 69 69 ('windows', r'/windows_path/C:%5CDocuments%20and%20Settings%5Cspam/', [], dict(drive_name='C', path=r'Documents and Settings\spam')), 70 70 ('special', r'/special_chars/+%5C$*/', [r'+\$*'], {}), 71 ('special', r'/special_chars/some%20resource/', [], {'chars': r'some resource'}), 72 ('special', r'/special_chars/10%25%20complete/', [], {'chars': r'10% complete'}), 71 73 ('special', NoReverseMatch, [''], {}), 72 74 ('mixed', '/john/0/', [], {'name': 'john'}), 73 75 ('repeats', '/repeats/a/', [], {}), -
tests/regressiontests/urlpatterns_reverse/urls.py
35 35 name="headlines"), 36 36 url(r'^windows_path/(?P<drive_name>[A-Z]):\\(?P<path>.+)/$', empty_view, 37 37 name="windows"), 38 url(r'^special_chars/( .+)/$', empty_view, name="special"),38 url(r'^special_chars/(?P<chars>.+)/$', empty_view, name="special"), 39 39 url(r'^(?P<name>.+)/\d+/$', empty_view, name="mixed"), 40 40 url(r'^repeats/a{1,2}/$', empty_view, name="repeats"), 41 41 url(r'^repeats/a{2,4}/$', empty_view, name="repeats2"),