Merge "add "yardstick testcase list" command function"
[yardstick.git] / tests / unit / cmd / commands / test_testcase.py
1 #!/usr/bin/env python
2
3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 #
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 ##############################################################################
11
12 # Unittest for yardstick.cmd.commands.testcase
13
14 import mock
15 import unittest
16
17 from yardstick.cmd.commands import testcase
18 from yardstick.cmd.commands.testcase import TestcaseCommands
19
20 class TestcaseCommandsUT(unittest.TestCase):
21
22     def test_do_list(self):
23         t = testcase.TestcaseCommands()
24         result = t.do_list("")
25         self.assertEqual(result, True)
26
27