Make code more compact for get_list_opts function
Do it like in get_show_opts done. Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
This commit is contained in:
parent
de909e4afc
commit
ca9a6daba0
@ -63,9 +63,7 @@ class TestCase(testtools.TestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_list_opts(cls, headers=[]):
|
def get_list_opts(cls, headers=[]):
|
||||||
opts = ' -f csv '
|
return ' -f csv ' + ' '.join(['-c ' + it for it in headers])
|
||||||
opts = opts + ' '.join(['-c ' + it for it in headers])
|
|
||||||
return opts
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def assertOutput(cls, expected, actual):
|
def assertOutput(cls, expected, actual):
|
||||||
|
Loading…
Reference in New Issue
Block a user