diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-05-18 03:28:32 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-07-02 01:32:39 -0300 |
commit | 154cfabeca53258e547adfb5ce815a59f8eff59c (patch) | |
tree | 90e352ae785ea5b2d8566408cbb7a6f45ef033b7 /testing/tests | |
parent | 0dbdb7e6a2ce73a28d5965d41db03cd02bf4abf3 (diff) |
[feature] direct /incoming requests to IncomingResource
Adds the routing code for exposing /incoming from SoledadResource.
- Related: #8827
Diffstat (limited to 'testing/tests')
-rw-r--r-- | testing/tests/server/test__resource.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/tests/server/test__resource.py b/testing/tests/server/test__resource.py index 1c0510b9..249b62f9 100644 --- a/testing/tests/server/test__resource.py +++ b/testing/tests/server/test__resource.py @@ -26,6 +26,7 @@ from twisted.internet import reactor 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._incoming import IncomingResource from leap.soledad.server.gzip_middleware import GzipMiddleware @@ -68,3 +69,9 @@ class SoledadResourceTestCase(unittest.TestCase): child = getChildForRequest(resource, request) self.assertIsInstance(child, WSGIResource) self.assertIsInstance(child._application, GzipMiddleware) + + def test_get_incoming(self): + resource = SoledadResource(None, sync_pool=_pool) + request = DummyRequest(['incoming']) + child = getChildForRequest(resource, request) + self.assertIsInstance(child, IncomingResource) |