Fix incorrect order of params of assertEqual()

The correct order of params is assertEqual(expected, actual).

Change-Id: I5c6e2de98319c4381ea7dc6e7f3c86985477f1a3
This commit is contained in:
Luong Anh Tuan 2016-08-16 10:43:56 +07:00 committed by Tuan
parent e67f9abefb
commit fb3f7e39e5

View File

@ -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']])