diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-07-18 22:54:23 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-07-18 22:54:23 +0000 |
| commit | 9fed459bf34cdaab6e48a8b13f9dff0ffa46b880 (patch) | |
| tree | e4e7af6ac0d2997747331de084d60667858f2259 | |
| parent | 6ce53fed830e7555305ccc1664dbb922a6e3e1b8 (diff) | |
| parent | 9f346c3fb6eb25ed581139992380c53580c1cd42 (diff) | |
| download | python-openstackclient-9fed459bf34cdaab6e48a8b13f9dff0ffa46b880.tar.gz | |
Merge "Allow format selection in get_opts"
| -rw-r--r-- | functional/common/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functional/common/test.py b/functional/common/test.py index fa523d7d..f7f0361e 100644 --- a/functional/common/test.py +++ b/functional/common/test.py @@ -58,8 +58,9 @@ class TestCase(testtools.TestCase): return cls.openstack('configuration show ' + opts) @classmethod - def get_opts(cls, fields): - return ' -f value ' + ' '.join(['-c ' + it for it in fields]) + def get_opts(cls, fields, format='value'): + return ' -f {0} {1}'.format(format, + ' '.join(['-c ' + it for it in fields])) @classmethod def assertOutput(cls, expected, actual): |
