Пример #1
0
 def mock_unauthorized_exception(self):
     exception = CanvasAPIError()
     exception.response = MagicMock()
     exception.status_code = 401
     return exception
Пример #2
0
 def mock_api_exception(self):
     exception = CanvasAPIError()
     exception.response = MagicMock()
     return exception