diff --git a/tests/unittests/general/util_test.py b/tests/unittests/general/util_test.py index a2b4ff3fce..2da8474f0d 100644 --- a/tests/unittests/general/util_test.py +++ b/tests/unittests/general/util_test.py @@ -150,7 +150,7 @@ def test_multi_mask_should_raise(self): class TestFirstTrue(object): def test_first_true_should_find_true_element(self): elems = [False, False, True, False] - assert first_true(elems) == True + assert first_true(elems) is True def test_first_true_should_return_default_value_when_no_true_found(self): elems = [False, False, False] diff --git a/tests/unittests/general/webfront_test.py b/tests/unittests/general/webfront_test.py index 72986d1968..cad80785a3 100644 --- a/tests/unittests/general/webfront_test.py +++ b/tests/unittests/general/webfront_test.py @@ -82,7 +82,7 @@ def test_authenticate_remote_user_should_return_false_if_account_locked(self): ): with patch("nav.web.auth.LogEntry.add_log_entry"): with patch("nav.web.auth.Account.locked", return_value=True): - assert remote_user.authenticate(request) == False + assert remote_user.authenticate(request) is False class TestGetStandardUrls(object):