summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/test_forms.py')
-rw-r--r--tests/auth_tests/test_forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py
index 76b0eb7f3c..e208305fc6 100644
--- a/tests/auth_tests/test_forms.py
+++ b/tests/auth_tests/test_forms.py
@@ -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>')