Browse Source

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
tags/2.3.5
llg8212 5 years ago
parent
commit
cc2a56cc1a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      neutronclient/tests/unit/test_casual_args.py

+ 1
- 1
neutronclient/tests/unit/test_casual_args.py View File

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

Loading…
Cancel
Save