diff options
| author | blue55 <yllan@fiberhome.com> | 2017-06-22 14:51:37 +0800 |
|---|---|---|
| committer | blue55 <yllan@fiberhome.com> | 2017-06-23 16:31:48 +0800 |
| commit | 20c23d8ccbdf14d2d97b039d6a8cca62f4b04873 (patch) | |
| tree | 50b1007ea958015086f5527cc1cf06ec6aa1a673 /openstackclient/tests/functional/volume | |
| parent | 7653cff5e6f9592332a23e452ad6bf1549542b16 (diff) | |
| download | python-openstackclient-20c23d8ccbdf14d2d97b039d6a8cca62f4b04873.tar.gz | |
Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H203] Use assertIs(Not)None to check for None
Change-Id: I59dafb62cedc5217b6e5eb6efb997a9ee3c29bbb
Diffstat (limited to 'openstackclient/tests/functional/volume')
| -rw-r--r-- | openstackclient/tests/functional/volume/v1/test_service.py | 5 | ||||
| -rw-r--r-- | openstackclient/tests/functional/volume/v2/test_service.py | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/openstackclient/tests/functional/volume/v1/test_service.py b/openstackclient/tests/functional/volume/v1/test_service.py index c921c46a..fee73f18 100644 --- a/openstackclient/tests/functional/volume/v1/test_service.py +++ b/openstackclient/tests/functional/volume/v1/test_service.py @@ -64,10 +64,7 @@ class VolumeServiceTests(common.BaseVolumeTests): 'enabled', cmd_output[0]['Status'] ) - self.assertEqual( - None, - cmd_output[0]['Disabled Reason'] - ) + self.assertIsNone(cmd_output[0]['Disabled Reason']) # Test volume service set --disable and --disable-reason disable_reason = 'disable_reason' diff --git a/openstackclient/tests/functional/volume/v2/test_service.py b/openstackclient/tests/functional/volume/v2/test_service.py index 8d1944e4..6986fde6 100644 --- a/openstackclient/tests/functional/volume/v2/test_service.py +++ b/openstackclient/tests/functional/volume/v2/test_service.py @@ -64,8 +64,7 @@ class VolumeServiceTests(common.BaseVolumeTests): 'enabled', cmd_output[0]['Status'] ) - self.assertEqual( - None, + self.assertIsNone( cmd_output[0]['Disabled Reason'] ) |
