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
changes/78/73778/2
llg8212 9 years ago
parent 58a7e01b8f
commit cc2a56cc1a
  1. 2
      neutronclient/tests/unit/test_casual_args.py

@ -100,7 +100,7 @@ class CLITestArgs(testtools.TestCase):
def test_clear_action(self):
_specs = ['--anyarg', 'action=clear']
args = neutronV20.parse_args_to_dict(_specs)
self.assertEqual(None, args['anyarg'])
self.assertIsNone(args['anyarg'])
def test_bad_values_str(self):
_specs = ['--strarg', 'type=str']

Loading…
Cancel
Save