summaryrefslogtreecommitdiff
path: root/openstackclient/tests/utils.py
diff options
context:
space:
mode:
authorwanghong <w.wanghong@huawei.com>2015-01-27 17:02:41 +0800
committerwanghong <w.wanghong@huawei.com>2015-01-27 17:02:41 +0800
commit127af151ff60d11e7b2f88555678cf18b8828e48 (patch)
treed34f518408f4a4a471fd26c52ee6dec9ed44c3cf /openstackclient/tests/utils.py
parent703a25d445d7b710212633af3a12d8c168208c62 (diff)
downloadpython-openstackclient-127af151ff60d11e7b2f88555678cf18b8828e48.tar.gz
fix the wrong order of assertEqual args
Let's fix them thoroughly. Change-Id: I8a1f042fb614b05c9836a49041f3883638b870b0
Diffstat (limited to 'openstackclient/tests/utils.py')
-rw-r--r--openstackclient/tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/utils.py b/openstackclient/tests/utils.py
index 25f98525..7fc7ddfe 100644
--- a/openstackclient/tests/utils.py
+++ b/openstackclient/tests/utils.py
@@ -93,5 +93,5 @@ class TestCommand(TestCase):
attr, value = av
if attr:
self.assertIn(attr, parsed_args)
- self.assertEqual(getattr(parsed_args, attr), value)
+ self.assertEqual(value, getattr(parsed_args, attr))
return parsed_args