4 from api.utils.daemonthread import DaemonThread
7 class DaemonThreadTestCase(unittest.TestCase):
9 @mock.patch('api.utils.daemonthread.os')
10 def test_run(self, mock_os):
11 def func(common_list, task_id):
16 thread = DaemonThread(func, (common_list, task_id))
19 mock_os.path.exist.return_value = True
20 pre_path = '../tests/opnfv/test_suites/'
21 mock_os.remove.assert_called_with(pre_path + '1234.yaml')
28 if __name__ == '__main__':