Fix incorrect order of params of assertEqual()
The correct order of params is assertEqual(expected, actual).
Change-Id: I4bbbe4b89411ebacfe76e4fd9a96b5d2e1bfd678
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 bc8b692..2931127 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 @@
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 7c19a55..675ea4a 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 @@
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 @@
# '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 @@
_, 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):