diff options
author | Pavel Kholkin <pkholkin@mirantis.com> | 2015-03-03 15:34:01 +0300 |
---|---|---|
committer | Pavel Kholkin <pkholkin@mirantis.com> | 2015-03-03 15:36:49 +0300 |
commit | 560eeafb6d3b32aa1251c7349f9f90685bead566 (patch) | |
tree | f4e75d70d242a28353262f06d7cbd0634cdd0ca0 /novaclient/tests/unit/test_utils.py | |
parent | 9f4d64a1bfbf42dec0d872b1045d8adbc7f19623 (diff) | |
download | python-novaclient-560eeafb6d3b32aa1251c7349f9f90685bead566.tar.gz |
Cleanup in asserts in python-novaclient
The following replacements were done:
1) assertEqual(True, *) -> assertTrue(*)
2) assertEqual(False, *) -> assertFalse(*)
3) assertTrue(a in b) -> assertIn(a, b)
4) assertTrue(* is not None) -> assertIsNotNone(*)
TrivialFix
Change-Id: I8d8a2d7b5d3505e07728544b683b301d1a8850cf
Diffstat (limited to 'novaclient/tests/unit/test_utils.py')
-rw-r--r-- | novaclient/tests/unit/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/tests/unit/test_utils.py b/novaclient/tests/unit/test_utils.py index 2e72ef65..da68ce79 100644 --- a/novaclient/tests/unit/test_utils.py +++ b/novaclient/tests/unit/test_utils.py @@ -311,7 +311,7 @@ class ValidationsTestCase(test_utils.TestCase): utils.validate_flavor_metadata_keys([key]) self.fail("Invalid key passed validation: %s" % key) except exceptions.CommandError as ce: - self.assertTrue(key in str(ce)) + self.assertIn(key, str(ce)) class ResourceManagerExtraKwargsHookTestCase(test_utils.TestCase): |