Fix unit tests for Python 3.6 (#431)

Python 3.6 complains about 'AttributeError: 'MockRequest' object has no attribute 'sendall'
This commit is contained in:
Oleksii Kliukin
2017-04-18 12:44:42 +02:00
committed by Alexander Kukushkin
parent dea8f22a37
commit d39f895082
+2
View File
@@ -101,6 +101,8 @@ class MockRequest(object):
def makefile(self, *args, **kwargs):
return IO(self.request)
def sendall(self, *args, **kwargs):
pass
class MockRestApiServer(RestApiServer):