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 commit1175081294
) (cherry picked from commitf4d62e1a0b
)
This commit is contained in:
parent
9534b9fa4d
commit
7562e64dee
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue