1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #27804 -- Used subTest() in several tests.

This commit is contained in:
Bruno Alla
2017-03-07 21:00:43 +00:00
committed by Tim Graham
parent 91b2bc3e70
commit 6092ea8fa6
19 changed files with 324 additions and 262 deletions

View File

@@ -339,4 +339,5 @@ class AdminDocViewFunctionsTests(SimpleTestCase):
(r'^a/?$', '/a/'),
)
for pattern, output in tests:
self.assertEqual(simplify_regex(pattern), output)
with self.subTest(pattern=pattern):
self.assertEqual(simplify_regex(pattern), output)