diff --git a/tempest/tests/common/test_custom_matchers.py b/tempest/tests/common/test_custom_matchers.py index 07867fc244..1053d861a5 100644 --- a/tempest/tests/common/test_custom_matchers.py +++ b/tempest/tests/common/test_custom_matchers.py @@ -25,11 +25,11 @@ class TestMatchersInterface(object): matches = self.matches_matches mismatches = self.matches_mismatches for candidate in matches: - self.assertEqual(None, matcher.match(candidate)) + self.assertIsNone(matcher.match(candidate)) for candidate in mismatches: mismatch = matcher.match(candidate) - self.assertNotEqual(None, mismatch) - self.assertNotEqual(None, getattr(mismatch, 'describe', None)) + self.assertIsNotNone(mismatch) + self.assertIsNotNone(getattr(mismatch, 'describe', None)) def test__str__(self): # [(expected, object to __str__)].