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
14 from __future__ import absolute_import
17 from yardstick.benchmark.core import testcase
23 self.casename = ('opnfv_yardstick_tc001',)
26 class TestcaseUT(unittest.TestCase):
28 def test_list_all(self):
29 t = testcase.Testcase()
30 result = t.list_all("")
31 self.assertIsInstance(result, list)
34 t = testcase.Testcase()
36 result = t.show(casename)
37 self.assertTrue(result)
44 if __name__ == '__main__':