summaryrefslogtreecommitdiff
path: root/testing/tests/server/test__resource.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-01-26 18:37:45 -0200
committerKali Kaneko <kali@leap.se>2017-02-09 17:41:52 +0100
commit7432b72471fa3de03d13b9d35f6004d14deae63d (patch)
tree00a5e26fa2889a8186df73bed30cede479fcabb2 /testing/tests/server/test__resource.py
parent30c47eea2b10f10204b5d61ecb550edd24e59067 (diff)
[refactor] move wsgi sync setup to its own module
Diffstat (limited to 'testing/tests/server/test__resource.py')
-rw-r--r--testing/tests/server/test__resource.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/tests/server/test__resource.py b/testing/tests/server/test__resource.py
index 0ea46d6a..b5285195 100644
--- a/testing/tests/server/test__resource.py
+++ b/testing/tests/server/test__resource.py
@@ -25,6 +25,7 @@ from twisted.web.wsgi import WSGIResource
from leap.soledad.server._resource import SoledadResource
from leap.soledad.server._server_info import ServerInfo
from leap.soledad.server._blobs import BlobsResource
+from leap.soledad.server.gzip_middleware import GzipMiddleware
conf_blobs_false = {'soledad-server': {'blobs': False}}
@@ -64,3 +65,4 @@ class SoledadResourceTestCase(unittest.TestCase):
request.prepath = ['user-db']
child = resource.getChild(path, request)
self.assertIsInstance(child, WSGIResource)
+ self.assertIsInstance(child._application, GzipMiddleware)