diff options
author | yangxurong <yangxurong@huawei.com> | 2014-02-25 10:57:05 +0800 |
---|---|---|
committer | yangxurong <yangxurong@huawei.com> | 2014-03-04 17:17:22 +0800 |
commit | d9d2408eaf11dd3bd47bcfb9e1cc5800619a480b (patch) | |
tree | 195f1a2a7e914d30063ec4973a8602dc3f76a137 /ironic/tests/test_images.py | |
parent | cc62836787222d1fd8d60bd2380aa267639de1d6 (diff) | |
download | ironic-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.py | 6 |
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 |