Merge "Make code more compact for get_list_opts function"
This commit is contained in:
commit
6dbec64dd7
@ -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…
x
Reference in New Issue
Block a user