Allow format selection in get_opts
Default is "value". Change-Id: I244253f6cd53104a57ef12f6b14e1653c89d38bc
This commit is contained in:
parent
52cb503fb0
commit
9f346c3fb6
@ -58,8 +58,9 @@ class TestCase(testtools.TestCase):
|
|||||||
return cls.openstack('configuration show ' + opts)
|
return cls.openstack('configuration show ' + opts)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_opts(cls, fields):
|
def get_opts(cls, fields, format='value'):
|
||||||
return ' -f value ' + ' '.join(['-c ' + it for it in fields])
|
return ' -f {0} {1}'.format(format,
|
||||||
|
' '.join(['-c ' + it for it in fields]))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def assertOutput(cls, expected, actual):
|
def assertOutput(cls, expected, actual):
|
||||||
|
Loading…
Reference in New Issue
Block a user