From b92ae6d001769804637e0672c243a3ceabf00de4 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 19 Mar 2014 16:13:14 +0100 Subject: [PATCH] Add status attribute to Response mock --- tests/storage/dav/_radicale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/storage/dav/_radicale.py b/tests/storage/dav/_radicale.py index 80317f9..d10a022 100644 --- a/tests/storage/dav/_radicale.py +++ b/tests/storage/dav/_radicale.py @@ -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'''