diff options
| author | Mads Jensen <mje@inducks.org> | 2021-04-16 23:19:25 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-07 10:51:38 +0200 |
| commit | c51bf80d56cbcdbec1b243b8db086f35b4598947 (patch) | |
| tree | 464350c4e41ae082da3d9a0ad04c36f91a3215e1 /tests/auth_tests/test_forms.py | |
| parent | 7309393c3a7dea7a34a1446e102df7432c4e7357 (diff) | |
Used more specific unittest assertions in tests.
Diffstat (limited to 'tests/auth_tests/test_forms.py')
| -rw-r--r-- | tests/auth_tests/test_forms.py | 2 |
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>') |
