3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # Unittest for yardstick.cmd.commands.testcase
17 from yardstick.cmd.commands import testcase
18 from yardstick.cmd.commands.testcase import TestcaseCommands
22 self.casename=('opnfv_yardstick_tc001',)
24 class TestcaseCommandsUT(unittest.TestCase):
26 def test_do_list(self):
27 t = testcase.TestcaseCommands()
28 result = t.do_list("")
29 self.assertEqual(result, True)
31 def test_do_show(self):
32 t = testcase.TestcaseCommands()
34 result = t.do_show(casename)
35 self.assertEqual(result, True)