# The cassette doesn't contain the request asked for.
raise UnhandledHTTPRequestError(
"The cassette (%r) doesn't contain the request (%r) asked for"
- % (self._path,request))
+ % (self._path, request)
+ )
def responses_of(self, request):
'''
# The cassette doesn't contain the request asked for.
raise UnhandledHTTPRequestError(
"The cassette (%r) doesn't contain the request (%r) asked for"
- % (self._path,request))
+ % (self._path, request)
+ )
def _as_dict(self):
return {"requests": self.requests, "responses": self.responses}
raise CannotOverwriteExistingCassetteException(
"Can't overwrite existing cassette (%r) in "
"your current record mode (%r)."
- % (self.cassette._path, self.cassette.record_mode)
+ % (self.cassette._path, self.cassette.record_mode)
)
# Otherwise, we should send the request, then get the response