diff options
author | Jing Lu <lvjing5@huawei.com> | 2017-06-30 06:49:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-30 06:49:43 +0000 |
commit | 14bc98f0e810e37f4600cb0b16d227e8290e1db2 (patch) | |
tree | b7ef7b0d60c018620875b185fe7b66dbd2a12ef5 /tests/unit/apiserver/utils | |
parent | bf298f7dfa5de497ef3cd69aaea7218ed7559160 (diff) | |
parent | 1b9eeb504ed9416c74e1caf8975b51ee6af86b29 (diff) |
Merge "Change prepareYardstickEnv to prepare_env and add log info"
Diffstat (limited to 'tests/unit/apiserver/utils')
-rw-r--r-- | tests/unit/apiserver/utils/test_common.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/unit/apiserver/utils/test_common.py b/tests/unit/apiserver/utils/test_common.py index acf6e41b1..ad81cb76b 100644 --- a/tests/unit/apiserver/utils/test_common.py +++ b/tests/unit/apiserver/utils/test_common.py @@ -33,31 +33,6 @@ class TranslateToStrTestCase(unittest.TestCase): self.assertEqual(result, output_str) -class GetCommandListTestCase(unittest.TestCase): - - def test_get_command_list_no_opts(self): - command_list = ['a'] - opts = {} - args = 'b' - output_list = common.get_command_list(command_list, opts, args) - - result_list = ['a', 'b'] - self.assertEqual(result_list, output_list) - - def test_get_command_list_with_opts_args(self): - command_list = ['a'] - opts = { - 'b': 'c', - 'task-args': 'd' - } - args = 'e' - - output_list = common.get_command_list(command_list, opts, args) - - result_list = ['a', 'e', '--b', '--task-args', 'd'] - self.assertEqual(result_list, output_list) - - def main(): unittest.main() |