summaryrefslogtreecommitdiff
path: root/service/test/support/test_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/support/test_helper.py')
-rw-r--r--service/test/support/test_helper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/test/support/test_helper.py b/service/test/support/test_helper.py
index d2387d0c..54685008 100644
--- a/service/test/support/test_helper.py
+++ b/service/test/support/test_helper.py
@@ -91,6 +91,10 @@ class PixRequestMock(DummyRequest):
self.content = None
self.code = None
+ def getWrittenData(self):
+ if len(self.written):
+ return self.written[0]
+
def request_mock(path='', method='GET', body='', headers={}):
dummy = PixRequestMock(path.split('/'))