From c51bf80d56cbcdbec1b243b8db086f35b4598947 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Fri, 16 Apr 2021 23:19:25 +0200 Subject: Used more specific unittest assertions in tests. --- tests/auth_tests/test_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auth_tests') 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(), '') -- cgit v1.3