summaryrefslogtreecommitdiff
path: root/service/test/support/test_helper.py
diff options
context:
space:
mode:
authorDuda Dornelles <dudassdornelles@gmail.com>2015-01-22 15:50:36 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-22 16:50:53 -0200
commit86ed99a7d78e4690d103f4334dc0eef03c47e402 (patch)
treedafd5d0aca3efb6f3c8afdc755c88423fba5991f /service/test/support/test_helper.py
parent81552abcfe67f61b68ad7cbf424738f7788f148c (diff)
#224 fixing tests and app for twisted migration
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('/'))