def mock_unauthorized_exception(self):
     exception = CanvasAPIError()
     exception.response = MagicMock()
     exception.status_code = 401
     return exception
 def mock_api_exception(self):
     exception = CanvasAPIError()
     exception.response = MagicMock()
     return exception