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:
committed by
Mariusz Felisiak
parent
7309393c3a
commit
c51bf80d56
@@ -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>')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user