Merge "Generic helper function to provision and get path from config"
[yardstick.git] / tests / unit / cmd / commands / test_testcase.py
1 import unittest
2 from mock import patch
3
4 from yardstick.cmd.commands.testcase import TestcaseCommands
5
6
7 class TestcaseCommandsUT(unittest.TestCase):
8     @patch('yardstick.cmd.commands.testcase.TestcaseCommands._format_print')
9     @patch('yardstick.cmd.commands.client')
10     def test_do_list(self, mock_client, mock_print):
11         mock_client.get.return_value = {'result': []}
12         TestcaseCommands().do_list({})
13         self.assertTrue(mock_print.called)
14
15
16 def main():
17     unittest.main()
18
19
20 if __name__ == '__main__':
21     main()