diff options
author | jacky06 <zhang.min@99cloud.net> | 2019-03-06 22:41:58 +0800 |
---|---|---|
committer | caoyuan <cao.yuan@99cloud.net> | 2019-03-27 09:06:39 +0000 |
commit | b8ecb0bc0386fe4b001d6122004c4bb3f6e22a71 (patch) | |
tree | 00c673186d0c583f74e10603a0fe5562d84a6dea /glanceclient/tests | |
parent | 60a707e73a9ad52cdacd23933cb3a5ac4d419eef (diff) | |
download | python-glanceclient-b8ecb0bc0386fe4b001d6122004c4bb3f6e22a71.tar.gz |
Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8
Change-Id: Ifc3b96d98c1a7feff187f953d487e12135887fb9
Diffstat (limited to 'glanceclient/tests')
-rw-r--r-- | glanceclient/tests/unit/v1/test_shell.py | 8 | ||||
-rw-r--r-- | glanceclient/tests/unit/v2/test_shell_v2.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/glanceclient/tests/unit/v1/test_shell.py b/glanceclient/tests/unit/v1/test_shell.py index 95bbd07..a3bd29b 100644 --- a/glanceclient/tests/unit/v1/test_shell.py +++ b/glanceclient/tests/unit/v1/test_shell.py @@ -334,8 +334,8 @@ class ShellInvalidEndpointandParameterTest(utils.TestCase): e = self.assertRaises(exc.CommandError, self.run_command, '--os-image-api-version 1 image-create ' + origin + ' fake_src --container-format bare') - self.assertEqual('error: Must provide --disk-format when using ' - + origin + '.', e.message) + self.assertEqual('error: Must provide --disk-format when using ' + + origin + '.', e.message) @mock.patch('sys.stderr') def test_image_create_missing_container_format(self, __): @@ -536,8 +536,8 @@ class ShellStdinHandlingTests(testtools.TestCase): self._do_update() self.assertTrue( - 'data' not in self.collected_args[1] - or self.collected_args[1]['data'] is None + 'data' not in self.collected_args[1] or + self.collected_args[1]['data'] is None ) def test_image_update_opened_stdin(self): diff --git a/glanceclient/tests/unit/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py index b8161e3..84ef1f0 100644 --- a/glanceclient/tests/unit/v2/test_shell_v2.py +++ b/glanceclient/tests/unit/v2/test_shell_v2.py @@ -57,7 +57,7 @@ def schema_args(schema_getter, omit=None): return original_schema_args(my_schema_getter, omit) utils.schema_args = schema_args -from glanceclient.v2 import shell as test_shell +from glanceclient.v2 import shell as test_shell # noqa # Return original decorator. utils.schema_args = original_schema_args |