From 35a434db70e4b7fdae8d84122b72ef93c18bd696 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Tue, 13 Sep 2016 11:43:47 +0300 Subject: [PATCH] Remove assertTableStruct from ClientTestBase assertTableStruct is the same like in ClientTestBase, so we don't need to duplicate the code. Change-Id: I96c3bc450223d5f3f6f84c6313a0205cfb247514 --- cinderclient/tests/functional/base.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cinderclient/tests/functional/base.py b/cinderclient/tests/functional/base.py index 8b291b661..51cc492e8 100644 --- a/cinderclient/tests/functional/base.py +++ b/cinderclient/tests/functional/base.py @@ -84,20 +84,6 @@ class ClientTestBase(base.ClientTestBase): for field in field_names: self.assertIn(field, headers) - def assertTableStruct(self, items, field_names): - """Verify that all items has keys listed in field_names. - - :param items: items to assert are field names in the output table - :type items: list - :param field_names: field names from the output table of the cmd - :type field_names: list - """ - # Strip off the --- if present - - for item in items: - for field in field_names: - self.assertIn(field, item) - def assert_object_details(self, expected, items): """Check presence of common object properties.