diff options
| author | Yusuke Hayashi <hayashi-yusuke@jp.fujitsu.com> | 2015-08-09 15:57:00 +0900 |
|---|---|---|
| committer | Yusuke Hayashi <hayashi-yusuke@jp.fujitsu.com> | 2015-08-09 15:57:00 +0900 |
| commit | 780a1299cb40c219cf5f9146642bd67d309f1329 (patch) | |
| tree | fd0dee57abaa01fd865eeada1b8950266d907706 /cinderclient/tests/unit/test_shell.py | |
| parent | 03542ee65a5e818a5d908a85a6a9eba21ef63b53 (diff) | |
| download | python-cinderclient-780a1299cb40c219cf5f9146642bd67d309f1329.tar.gz | |
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: I7ea0306009e8fdde468c1394615972de4d296f45
Closes-Bug:#1280522
Diffstat (limited to 'cinderclient/tests/unit/test_shell.py')
| -rw-r--r-- | cinderclient/tests/unit/test_shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cinderclient/tests/unit/test_shell.py b/cinderclient/tests/unit/test_shell.py index a1a1964..62a68c1 100644 --- a/cinderclient/tests/unit/test_shell.py +++ b/cinderclient/tests/unit/test_shell.py @@ -113,14 +113,14 @@ class ShellTest(utils.TestCase): v2_url, v3_url = _shell._discover_auth_versions( None, auth_url=os_auth_url) self.assertEqual(v2_url, os_auth_url, "Expected v2 url") - self.assertEqual(v3_url, None, "Expected no v3 url") + self.assertIsNone(v3_url, "Expected no v3 url") os_auth_url = "https://DiscoveryNotSupported.discovery.com:35357/v3.0" self.register_keystone_auth_fixture(mocker, os_auth_url) v2_url, v3_url = _shell._discover_auth_versions( None, auth_url=os_auth_url) self.assertEqual(v3_url, os_auth_url, "Expected v3 url") - self.assertEqual(v2_url, None, "Expected no v2 url") + self.assertIsNone(v2_url, "Expected no v2 url") @mock.patch('sys.stdin', side_effect=mock.MagicMock) @mock.patch('getpass.getpass', return_value='password') |
