'Test wait_for_task_completion completed. One Try.'

@patch('time.sleep')
def test_wait_for_task_completion_good_one_try(self, mock_time):

    module = Mock()
    module.client.api.get_task_by_id.return_value = dict(workOrderUserDefinedStatus='Completed')
    result = cv_server_provision.wait_for_task_completion(module, '7')
    self.assertTrue(result)
    self.assertEqual(module.client.api.get_task_by_id.call_count, 1)
    module.fail_json.assert_not_called()
    mock_time.assert_not_called()
