diff --git a/tests/regressiontests/urlpatterns_reverse/tests.py b/tests/regressiontests/urlpatterns_reverse/tests.py
index 140a6bb..4b9f787 100644
a
|
b
|
test_data = (
|
74 | 74 | ('people2a', '/people/name/fred/', ['fred'], {}), |
75 | 75 | ('optional', '/optional/fred/', [], {'name': 'fred'}), |
76 | 76 | ('optional', '/optional/fred/', ['fred'], {}), |
| 77 | ('named_optional', '/optional/1/', [1], {}), |
| 78 | ('named_optional', '/optional/1/', [], {'arg1':1}), |
| 79 | ('named_optional', '/optional/1/2/', [1,2], {}), |
| 80 | ('named_optional', '/optional/1/2/', [], {'arg1':1,'arg2':2}), |
| 81 | ('named_optional_terminated', '/optional/1/2/', [1,2], {}), |
| 82 | ('named_optional_terminated', '/optional/1/2/', [], {'arg1':1,'arg2':2}), |
77 | 83 | ('hardcoded', '/hardcoded/', [], {}), |
78 | 84 | ('hardcoded2', '/hardcoded/doc.pdf', [], {}), |
79 | 85 | ('people3', '/people/il/adrian/', [], {'state': 'il', 'name': 'adrian'}), |
diff --git a/tests/regressiontests/urlpatterns_reverse/urls.py b/tests/regressiontests/urlpatterns_reverse/urls.py
index c603c02..244aee4 100644
a
|
b
|
urlpatterns = patterns('',
|
19 | 19 | url(r'^people/(?:name/)', empty_view, name="people2"), |
20 | 20 | url(r'^people/(?:name/(\w+)/)?', empty_view, name="people2a"), |
21 | 21 | url(r'^optional/(?P<name>.*)/(?:.+/)?', empty_view, name="optional"), |
| 22 | url(r'^optional/(?P<arg1>\d+)/(?P<arg2>\d+/)?', absolute_kwargs_view, name="named_optional"), |
| 23 | url(r'^optional/(?P<arg1>\d+)/(?P<arg2>\d+/)?$', absolute_kwargs_view, name="named_optional_terminated"), |
22 | 24 | url(r'^hardcoded/$', 'hardcoded/', empty_view, name="hardcoded"), |
23 | 25 | url(r'^hardcoded/doc\.pdf$', empty_view, name="hardcoded2"), |
24 | 26 | url(r'^people/(?P<state>\w\w)/(?P<name>\w+)/$', empty_view, name="people3"), |