summaryrefslogtreecommitdiff
path: root/ironic/tests/test_images.py
diff options
context:
space:
mode:
authoryangxurong <yangxurong@huawei.com>2014-02-25 10:57:05 +0800
committeryangxurong <yangxurong@huawei.com>2014-03-04 17:17:22 +0800
commitd9d2408eaf11dd3bd47bcfb9e1cc5800619a480b (patch)
tree195f1a2a7e914d30063ec4973a8602dc3f76a137 /ironic/tests/test_images.py
parentcc62836787222d1fd8d60bd2380aa267639de1d6 (diff)
downloadironic-d9d2408eaf11dd3bd47bcfb9e1cc5800619a480b.tar.gz
Fix params order in assertEqual
Fixed params order to correspond to real signature: assertEqual(expected, actual). Change-Id: Icb8125843882221dbefcf5633aeb7a72544526cd Partial-Bug: #1281052
Diffstat (limited to 'ironic/tests/test_images.py')
-rw-r--r--ironic/tests/test_images.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic/tests/test_images.py b/ironic/tests/test_images.py
index 6e534d653..42e8c1e61 100644
--- a/ironic/tests/test_images.py
+++ b/ironic/tests/test_images.py
@@ -93,13 +93,13 @@ class IronicImagesTestCase(base.TestCase):
('rm', 't.qcow2.part'),
('mv', 't.qcow2.converted', 't.qcow2')]
images.fetch_to_raw(context, image_id, target)
- self.assertEqual(self.executes, expected_commands)
+ self.assertEqual(expected_commands, self.executes)
target = 't.raw'
self.executes = []
expected_commands = [('mv', 't.raw.part', 't.raw')]
images.fetch_to_raw(context, image_id, target)
- self.assertEqual(self.executes, expected_commands)
+ self.assertEqual(expected_commands, self.executes)
target = 'backing.qcow2'
self.executes = []
@@ -107,6 +107,6 @@ class IronicImagesTestCase(base.TestCase):
self.assertRaises(exception.ImageUnacceptable,
images.fetch_to_raw,
context, image_id, target)
- self.assertEqual(self.executes, expected_commands)
+ self.assertEqual(expected_commands, self.executes)
del self.executes