Пример #1
0
 def setUp(self):
     self.server = mock.MagicMock()
     self.api = tasks.TasksAPI(self.server)
Пример #2
0
    def setUp(self):
        self.server = mock.MagicMock()
        self.api = tasks.TasksAPI(self.server)

        self.server.GET.return_value.response_body = copy.deepcopy(TASKS)