diff options
author | kubi <jean.gaoliang@huawei.com> | 2016-03-26 16:55:00 +0800 |
---|---|---|
committer | kubi <jean.gaoliang@huawei.com> | 2016-03-26 17:00:18 +0800 |
commit | cfde1fac2c062ca45d2816e6830b611abd8a61d0 (patch) | |
tree | b79c1ce87177d0b3d5c363f4051560a225d1a714 /tests/unit/cmd/commands | |
parent | e587b562bb2094a0e08bbdb25cff408e667ebe71 (diff) |
add "yardstick testcase list" command function
"yardstick testcase list" will list test cases info(Name, Description)
in tests/OPNFV/test_cases/
Change-Id: Icf2e6a803d90d33012f009519e47e750bfd57489
JIRA:-
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Diffstat (limited to 'tests/unit/cmd/commands')
-rw-r--r-- | tests/unit/cmd/commands/test_testcase.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/unit/cmd/commands/test_testcase.py b/tests/unit/cmd/commands/test_testcase.py new file mode 100644 index 000000000..351e5e79f --- /dev/null +++ b/tests/unit/cmd/commands/test_testcase.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python + +############################################################################## +# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +# Unittest for yardstick.cmd.commands.testcase + +import mock +import unittest + +from yardstick.cmd.commands import testcase +from yardstick.cmd.commands.testcase import TestcaseCommands + +class TestcaseCommandsUT(unittest.TestCase): + + def test_do_list(self): + t = testcase.TestcaseCommands() + result = t.do_list("") + self.assertEqual(result, True) + + |