Add status attribute to Response mock

This commit is contained in:
Markus Unterwaditzer 2014-03-19 16:13:14 +01:00
parent ceb764b67d
commit b92ae6d001

View file

@ -105,6 +105,7 @@ class Response(object):
self.text = x.get_data(as_text=True)
self.headers = x.headers
self.encoding = x.charset
self.reason = str(x.status)
def raise_for_status(self):
'''copied from requests itself'''