mirror of
https://github.com/django/django.git
synced 2025-10-17 22:07:29 +00:00
Used more specific unittest assertions in tests.
This commit is contained in:
parent
7309393c3a
commit
c51bf80d56
5 changed files with 8 additions and 8 deletions
|
@ -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>')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue