1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Used more specific unittest assertions in tests.

This commit is contained in:
Mads Jensen
2021-04-16 23:19:25 +02:00
committed by Mariusz Felisiak
parent 7309393c3a
commit c51bf80d56
5 changed files with 8 additions and 8 deletions

View File

@@ -1035,7 +1035,7 @@ class ReadOnlyPasswordHashTest(SimpleTestCase):
hash_field = ReadOnlyPasswordHashField()
bound_field = TestForm()['hash_field']
self.assertEqual(bound_field.field.widget.id_for_label('id'), None)
self.assertIsNone(bound_field.field.widget.id_for_label('id'))
self.assertEqual(bound_field.label_tag(), '<label>Hash field:</label>')