summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-24 13:50:48 +0000
committerGerrit Code Review <review@openstack.org>2016-06-24 13:50:48 +0000
commit6dbec64dd7d3d43e58126715ff0ce33abd757df7 (patch)
tree8df55c809ae32fe218967d10a86abe18bfac15c8 /functional
parent08480739c7913c7af53907ed87348e3fdc5e9a00 (diff)
parentca9a6daba07969081572edee71bdf3438f41425b (diff)
downloadpython-openstackclient-6dbec64dd7d3d43e58126715ff0ce33abd757df7.tar.gz
Merge "Make code more compact for get_list_opts function"
Diffstat (limited to 'functional')
-rw-r--r--functional/common/test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/functional/common/test.py b/functional/common/test.py
index 43615615..e882dd64 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):