def setUp(self): self.server = mock.MagicMock() self.api = tasks.TasksAPI(self.server)
def setUp(self): self.server = mock.MagicMock() self.api = tasks.TasksAPI(self.server) self.server.GET.return_value.response_body = copy.deepcopy(TASKS)