diff options
author | Luong Anh Tuan <tuanla@vn.fujitsu.com> | 2016-08-24 10:59:33 +0700 |
---|---|---|
committer | Tuan Luong-Anh <tuanla@vn.fujitsu.com> | 2016-08-29 04:33:41 +0000 |
commit | bda4f51132e62d01982f5af37fe5c15e9fc11a42 (patch) | |
tree | 97cd9f58624233efe667892a7cb039f46188264f /ironic_tempest_plugin | |
parent | 2263797a1dd8cbee96d04ba920be4ed8f211aca9 (diff) | |
download | ironic-bda4f51132e62d01982f5af37fe5c15e9fc11a42.tar.gz |
Fix incorrect order of params of assertEqual()
The correct order of params is assertEqual(expected, actual).
Change-Id: I4bbbe4b89411ebacfe76e4fd9a96b5d2e1bfd678
Diffstat (limited to 'ironic_tempest_plugin')
-rw-r--r-- | ironic_tempest_plugin/tests/api/admin/test_api_discovery.py | 2 | ||||
-rw-r--r-- | ironic_tempest_plugin/tests/api/admin/test_chassis.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py b/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py index bc8b6928b..2931127a6 100644 --- a/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py +++ b/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py @@ -31,7 +31,7 @@ class TestApiDiscovery(base.BaseBaremetalTest): def test_default_version(self): _, descr = self.client.get_api_description() default_version = descr['default_version'] - self.assertEqual(default_version['id'], 'v1') + self.assertEqual('v1', default_version['id']) @test.idempotent_id('abc0b34d-e684-4546-9728-ab7a9ad9f174') def test_version_1_resources(self): diff --git a/ironic_tempest_plugin/tests/api/admin/test_chassis.py b/ironic_tempest_plugin/tests/api/admin/test_chassis.py index 7c19a55fe..675ea4a22 100644 --- a/ironic_tempest_plugin/tests/api/admin/test_chassis.py +++ b/ironic_tempest_plugin/tests/api/admin/test_chassis.py @@ -38,7 +38,7 @@ class TestChassis(base.BaseBaremetalTest): def test_create_chassis(self): descr = data_utils.rand_name('test-chassis') _, chassis = self.create_chassis(description=descr) - self.assertEqual(chassis['description'], descr) + self.assertEqual(descr, chassis['description']) @test.idempotent_id('cabe9c6f-dc16-41a7-b6b9-0a90c212edd5') def test_create_chassis_unicode_description(self): @@ -46,7 +46,7 @@ class TestChassis(base.BaseBaremetalTest): # 'We ♡ OpenStack in Ukraine' descr = u'В Україні ♡ OpenStack!' _, chassis = self.create_chassis(description=descr) - self.assertEqual(chassis['description'], descr) + self.assertEqual(descr, chassis['description']) @test.idempotent_id('c84644df-31c4-49db-a307-8942881f41c0') def test_show_chassis(self): @@ -76,7 +76,7 @@ class TestChassis(base.BaseBaremetalTest): _, body = (self.client.update_chassis(uuid, description=new_description)) _, chassis = self.client.show_chassis(uuid) - self.assertEqual(chassis['description'], new_description) + self.assertEqual(new_description, chassis['description']) @test.idempotent_id('76305e22-a4e2-4ab3-855c-f4e2368b9335') def test_chassis_node_list(self): |