Merge "Allow format selection in get_opts"
This commit is contained in:
commit
9fed459bf3
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user