summaryrefslogtreecommitdiff
path: root/glanceclient/tests/unit/test_shell.py
diff options
context:
space:
mode:
authorzhengyao1 <zheng.yao1@zte.com.cn>2016-06-15 16:42:42 +0800
committerYaoZheng <zheng.yao1@zte.com.cn>2016-06-29 03:46:30 +0000
commitc3de38ed530b8db77185e819af65574e35ebe134 (patch)
tree7f113185bfae8d4a90783362586f50a4d8224d00 /glanceclient/tests/unit/test_shell.py
parent46c3792feef6f36b31e9783724b914d6740b0f84 (diff)
downloadpython-glanceclient-c3de38ed530b8db77185e819af65574e35ebe134.tar.gz
Use correct order of arguments to assertEqual
The correct order of arguments to assertEqual that is expected by testtools is (expected, observed). This patch fixes the inverted usage of arguments in some places that have cropped up since the last fix of this bug. Change-Id: If8c0dcb58496bc2fcf4c635f384522a1f7d2b2af Closes-Bug: #1259292
Diffstat (limited to 'glanceclient/tests/unit/test_shell.py')
-rw-r--r--glanceclient/tests/unit/test_shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glanceclient/tests/unit/test_shell.py b/glanceclient/tests/unit/test_shell.py
index 87eef7a..1350554 100644
--- a/glanceclient/tests/unit/test_shell.py
+++ b/glanceclient/tests/unit/test_shell.py
@@ -695,7 +695,7 @@ class ShellTestWithNoOSImageURLPublic(ShellTestWithKeystoneV3Auth):
glance_shell.main(args.split())
assert v2_client.called
(args, kwargs) = v2_client.call_args
- self.assertEqual(kwargs['endpoint_override'], self.image_url)
+ self.assertEqual(self.image_url, kwargs['endpoint_override'])
def test_endpoint_real_from_interface(self):
args = ('--os-image-api-version 2 image-list')
@@ -843,4 +843,4 @@ class ShellCacheSchemaTest(testutils.TestCase):
switch_version = self.shell._cache_schemas(self._make_args(options),
client,
home_dir=self.cache_dir)
- self.assertEqual(switch_version, True)
+ self.assertEqual(True, switch_version)