diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-06-02 17:32:29 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-06-02 17:32:29 +0000 |
| commit | f2b94d48a897afd3d5cb4595ac3fec3f3dbc0960 (patch) | |
| tree | b3d3eaf0a53eef5026f64b604b6ba351dc014815 /cinderclient/tests/functional/base.py | |
| parent | e88c96e18e110c076b9acbe103d066b3d61b5a58 (diff) | |
| parent | d547d2779aab59a100eed0d0c15b4b4b85d37b59 (diff) | |
| download | python-cinderclient-f2b94d48a897afd3d5cb4595ac3fec3f3dbc0960.tar.gz | |
Merge "Fix functional readonly_cli tests"
Diffstat (limited to 'cinderclient/tests/functional/base.py')
| -rw-r--r-- | cinderclient/tests/functional/base.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cinderclient/tests/functional/base.py b/cinderclient/tests/functional/base.py index 965568b..b8d5939 100644 --- a/cinderclient/tests/functional/base.py +++ b/cinderclient/tests/functional/base.py @@ -71,6 +71,17 @@ class ClientTestBase(base.ClientTestBase): return self.clients.cinder(*args, **kwargs) + def assertTableHeaders(self, output_lines, field_names): + """Verify that output table has headers item listed in field_names. + + :param output_lines: output table from cmd + :param field_names: field names from the output table of the cmd + """ + table = self.parser.table(output_lines) + headers = table['headers'] + 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. |
