summaryrefslogtreecommitdiff
path: root/openstackclient/tests/common/test_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/common/test_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/common/test_utils.py')
-rw-r--r--openstackclient/tests/common/test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/common/test_utils.py b/openstackclient/tests/common/test_utils.py
index e782d410..583ab99c 100644
--- a/openstackclient/tests/common/test_utils.py
+++ b/openstackclient/tests/common/test_utils.py
@@ -31,7 +31,7 @@ class TestUtils(test_utils.TestCase):
mock_stdin = mock.Mock()
mock_stdin.isatty = mock.Mock()
mock_stdin.isatty.return_value = True
- self.assertEqual(utils.get_password(mock_stdin), PASSWORD)
+ self.assertEqual(PASSWORD, utils.get_password(mock_stdin))
def test_get_password_bad_once(self):
answers = [PASSWORD, WASSPORD, DROWSSAP, DROWSSAP]
@@ -39,7 +39,7 @@ class TestUtils(test_utils.TestCase):
mock_stdin = mock.Mock()
mock_stdin.isatty = mock.Mock()
mock_stdin.isatty.return_value = True
- self.assertEqual(utils.get_password(mock_stdin), DROWSSAP)
+ self.assertEqual(DROWSSAP, utils.get_password(mock_stdin))
def test_get_password_no_tty(self):
mock_stdin = mock.Mock()