mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #27804 -- Used subTest() in several tests.
This commit is contained in:
parent
91b2bc3e70
commit
6092ea8fa6
19 changed files with 324 additions and 262 deletions
|
@ -143,7 +143,8 @@ class DistanceTest(unittest.TestCase):
|
|||
unit_tuple = [('Yard', 'yd'), ('Nautical Mile', 'nm'), ('German legal metre', 'german_m'),
|
||||
('Indian yard', 'indian_yd'), ('Chain (Sears)', 'chain_sears'), ('Chain', 'chain')]
|
||||
for nm, att in unit_tuple:
|
||||
self.assertEqual(att, D.unit_attname(nm))
|
||||
with self.subTest(nm=nm):
|
||||
self.assertEqual(att, D.unit_attname(nm))
|
||||
|
||||
|
||||
class AreaTest(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue