def test_import_task(self, mock_import_task): rm = RequestMaker('/api/v1', 'fakehost', 'faketoken') project = Project(rm, id=1) project.import_task('Task 1', 'New') mock_import_task.assert_called_with(1, 'Task 1', 'New')
def test_import_task(self, mock_import_task): rm = RequestMaker("/api/v1", "fakehost", "faketoken") project = Project(rm, id=1) project.import_task("Task 1", "New") mock_import_task.assert_called_with(1, "Task 1", "New")