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 <takanattie@gmail.com>
(cherry picked from commit 1175081294)
(cherry picked from commit f4d62e1a0b)
This commit is contained in:
Takashi Natsume 2020-09-28 22:52:51 +09:00
parent 9534b9fa4d
commit 7562e64dee
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,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")