From 3e81c217ac16734214b0b27f5ae74bc3214b52a4 Mon Sep 17 00:00:00 2001 From: Eyal Date: Thu, 7 Dec 2017 13:02:32 +0200 Subject: [PATCH] be more verbose when test fails Change-Id: Ib205080c5782ce7f8cfc31265bb0b46f006b4848 --- vitrage_tempest_tests/tests/api/resources/test_resources.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vitrage_tempest_tests/tests/api/resources/test_resources.py b/vitrage_tempest_tests/tests/api/resources/test_resources.py index 1d81d5fab..507629cc0 100644 --- a/vitrage_tempest_tests/tests/api/resources/test_resources.py +++ b/vitrage_tempest_tests/tests/api/resources/test_resources.py @@ -185,13 +185,15 @@ class TestResource(BaseVitrageTempest): key=lambda resource: resource["vitrage_id"]) self.assertEqual(len(sorted_cli_resources), - len(sorted_api_resources)) + len(sorted_api_resources), 'cli = %s --> api = %s' % + (sorted_cli_resources, sorted_api_resources)) for cli_resource, api_resource in \ zip(sorted_cli_resources, sorted_api_resources): for item in self.properties: self.assertEqual(cli_resource.get(item).lower(), - api_resource.get(item).lower()) + api_resource.get(item).lower(), + 'for item %s' % item) def _compare_resource_show(self, api_resource_show, cli_resource_show):