Ticket #14259: 14259-testcase.diff

File 14259-testcase.diff, 1.2 KB (added by Mark Lavin, 14 years ago)

Add testcase patch to verify reported behavior

  • tests/regressiontests/urlpatterns_reverse/tests.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/tests.py b/tests/regressiontests/urlpatterns_reverse/tests.py
    a b  
    138138    ('kwargs_view', '/arg_view/10/', [], {'arg1':10}),
    139139    ('regressiontests.urlpatterns_reverse.views.absolute_kwargs_view', '/absolute_arg_view/', [], {}),
    140140    ('regressiontests.urlpatterns_reverse.views.absolute_kwargs_view', '/absolute_arg_view/10/', [], {'arg1':10}),
    141     ('non_path_include', '/includes/non_path_include/', [], {})
     141    ('non_path_include', '/includes/non_path_include/', [], {}),
    142142
     143    # Regression test for #14259
     144    ('14259-test', '/pass/', [], {}),
    143145)
    144146
    145147class URLPatternReverse(TestCase):
  • tests/regressiontests/urlpatterns_reverse/urls.py

    diff --git a/tests/regressiontests/urlpatterns_reverse/urls.py b/tests/regressiontests/urlpatterns_reverse/urls.py
    a b  
    5858   
    5959    url('^includes/', include(other_patterns)),
    6060
     61    # Regression test for #14259
     62    url(r'^pass/$', empty_view, name="14259-test"),
     63    url(r'^fail/$', empty_view, name="14259-test")
     64
    6165)
    6266
    6367
Back to Top