Exemple #1
0
 def _make_request(self, opener, request, timeout=None):
     if 200 <= self.response_code < 299:  # if successful code
         return MockResponse(self.response_code)
     else:
         raise handle_error(MockException(self.response_code))
 def _make_request(self, opener, request, timeout=None):
     if 200 <= self.response_code < 299:  # if successful code
         return MockResponse(self.response_code)
     else:
         raise handle_error(MockException(self.response_code))
 def _make_request(self, opener, request):
     raise handle_error(MockException(self.response_code))