commit 117508129461436e13c148bb068b0775d67e85d3 Author: Takashi Natsume Date: Mon Sep 28 22:52:51 2020 +0900 Fix a hacking test In test_useless_assertion, the useless_assertion method should be checked instead of nonexistent_assertion_methods_and_attributes. Change-Id: Ifd19f636f58ae353d912bde57cba2cd0a29a9baa Signed-off-by: Takashi Natsume diff --git a/nova/tests/unit/test_hacking.py b/nova/tests/unit/test_hacking.py index 9222daa..da9d83c 100644 --- a/nova/tests/unit/test_hacking.py +++ b/nova/tests/unit/test_hacking.py @@ -897,7 +897,7 @@ class HackingTestCase(test.NoDBTestCase): expected_errors=errors, filename="nova/tests/unit/test_context.py") # Check no errors in other than 'nova/tests' directory. self._assert_has_no_errors( - code, checks.nonexistent_assertion_methods_and_attributes, + code, checks.useless_assertion, filename="nova/compute/api.py") code = """ self.assertIsNone(None_test_var, "Fails")