Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: I442951deb2bc6df199a1dd76142f71fc92e6f745 Closes-Bug:#1280522
This commit is contained in:
parent
58a7e01b8f
commit
cc2a56cc1a
|
@ -100,7 +100,7 @@ class CLITestArgs(testtools.TestCase):
|
||||||
def test_clear_action(self):
|
def test_clear_action(self):
|
||||||
_specs = ['--anyarg', 'action=clear']
|
_specs = ['--anyarg', 'action=clear']
|
||||||
args = neutronV20.parse_args_to_dict(_specs)
|
args = neutronV20.parse_args_to_dict(_specs)
|
||||||
self.assertEqual(None, args['anyarg'])
|
self.assertIsNone(args['anyarg'])
|
||||||
|
|
||||||
def test_bad_values_str(self):
|
def test_bad_values_str(self):
|
||||||
_specs = ['--strarg', 'type=str']
|
_specs = ['--strarg', 'type=str']
|
||||||
|
|
Loading…
Reference in New Issue