From ca9a6daba07969081572edee71bdf3438f41425b Mon Sep 17 00:00:00 2001 From: Kyrylo Romanenko Date: Fri, 24 Jun 2016 14:28:28 +0300 Subject: [PATCH] Make code more compact for get_list_opts function Do it like in get_show_opts done. Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9 --- functional/common/test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functional/common/test.py b/functional/common/test.py index 436156151e..e882dd6498 100644 --- a/functional/common/test.py +++ b/functional/common/test.py @@ -63,9 +63,7 @@ class TestCase(testtools.TestCase): @classmethod def get_list_opts(cls, headers=[]): - opts = ' -f csv ' - opts = opts + ' '.join(['-c ' + it for it in headers]) - return opts + return ' -f csv ' + ' '.join(['-c ' + it for it in headers]) @classmethod def assertOutput(cls, expected, actual):