1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 from six.moves import builtins
13 from yardstick.benchmark.core import testcase
14 from yardstick.tests.unit import base as ut_base
20 self.casename = ('opnfv_yardstick_tc001', )
23 class TestcaseTestCase(ut_base.BaseUnitTestCase):
25 def test_list_all(self):
26 t = testcase.Testcase()
27 result = t.list_all("")
28 self.assertIsInstance(result, list)
30 @mock.patch.object(builtins, 'print')
31 def test_show(self, *args):
32 t = testcase.Testcase()
34 result = t.show(casename)
35 self.assertTrue(result)