Ticket #3574: URL_test.patch
File URL_test.patch, 1.6 KB (added by , 18 years ago) |
---|
-
tests/regressiontests/templates/views.py
8 8 9 9 def client_action(request, id, action): 10 10 pass 11 12 def with_dot(request, format): 13 pass -
tests/regressiontests/templates/tests.py
651 651 'url01' : ('{% url regressiontests.templates.views.client client.id %}', {'client': {'id': 1}}, '/url_tag/client/1/'), 652 652 'url02' : ('{% url regressiontests.templates.views.client_action client.id,action="update" %}', {'client': {'id': 1}}, '/url_tag/client/1/update/'), 653 653 'url03' : ('{% url regressiontests.templates.views.index %}', {}, '/url_tag/'), 654 'url0x' : ('{% url regressiontests.templates.views.with_dot format %}', {'format' : 'ps'}, '/url_tag/with_dot.ps'), 654 655 655 656 # Failures 656 657 'url04' : ('{% url %}', {}, template.TemplateSyntaxError), -
tests/regressiontests/templates/urls.py
7 7 (r'^$', views.index), 8 8 (r'^client/(\d+)/$', views.client), 9 9 (r'^client/(\d+)/(?P<action>[^/]+)/$', views.client_action), 10 (r'^with_dot\.(html|ps)', views.with_dot), 10 11 )