From fb3f7e39e528979655da74ba808e68d05b5c676c Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Tue, 16 Aug 2016 10:43:56 +0700 Subject: [PATCH] Fix incorrect order of params of assertEqual() The correct order of params is assertEqual(expected, actual). Change-Id: I5c6e2de98319c4381ea7dc6e7f3c86985477f1a3 --- ironic_tempest_plugin/tests/api/admin/test_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic_tempest_plugin/tests/api/admin/test_nodes.py b/ironic_tempest_plugin/tests/api/admin/test_nodes.py index 79eca55730..ce143ae477 100644 --- a/ironic_tempest_plugin/tests/api/admin/test_nodes.py +++ b/ironic_tempest_plugin/tests/api/admin/test_nodes.py @@ -165,5 +165,5 @@ class TestNodes(base.BaseBaremetalTest): def test_get_node_by_instance_uuid(self): instance_uuid = self._associate_node_with_instance() _, body = self.client.show_node_by_instance_uuid(instance_uuid) - self.assertEqual(len(body['nodes']), 1) + self.assertEqual(1, len(body['nodes'])) self.assertIn(self.node['uuid'], [n['uuid'] for n in body['nodes']])