def setUp(self): super(WhenCallingTasksMethod, self).setUp() # Mock the 'am I a server process?' flag used by the decorator around # all task methods. Since this test class focuses on testing task # method behaviors, this flag is set to false to allow for direct # testing of these tasks without database transactional interference. is_server_side_config = {'return_value': False} self.is_server_side_patcher = mock.patch( 'barbican.queue.is_server_side', **is_server_side_config) self.is_server_side_patcher.start() self.tasks = server.Tasks()
def setUp(self): super(WhenUsingBeginOrderTask, self).setUp() self.tasks = server.Tasks()
def __init__(self): super(_DirectTaskInvokerClient, self).__init__() self._tasks = server.Tasks()
def setUp(self): super(WhenUsingPerformVerificationTask, self).setUp() self.tasks = server.Tasks()