Ticket #27781: 27781.diff
File 27781.diff, 592 bytes (added by , 8 years ago) |
---|
-
tests/admin_docs/test_views.py
diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index 34f6af6..0915e01 100644
a b class AdminDocViewFunctionsTests(SimpleTestCase): 336 336 (r'^(?P<a>(x|y))/b/(?P<c>\w+)$', '/<a>/b/<c>'), 337 337 (r'^(?P<a>(x|y))/b/(?P<c>\w+)ab', '/<a>/b/<c>ab'), 338 338 (r'^(?P<a>(x|y)(\(|\)))/b/(?P<c>\w+)ab', '/<a>/b/<c>ab'), 339 (r'^a/?$', '/a/'), 339 340 ) 340 341 for pattern, output in tests: 341 342 self.assertEqual(simplify_regex(pattern), output)