Index: server/guiserver/tests/test_apps.py |
=== modified file 'server/guiserver/tests/test_apps.py' |
--- server/guiserver/tests/test_apps.py 2014-01-28 10:32:31 +0000 |
+++ server/guiserver/tests/test_apps.py 2014-02-04 17:23:57 +0000 |
@@ -110,12 +110,18 @@ |
tokens = self.assert_in_spec(spec, 'tokens') |
self.assertIsInstance(tokens, auth.AuthenticationTokenHandler) |
- def test_sandbox(self): |
+ def test_websocket_excluded_in_sandbox_mode(self): |
# The WebSocket handler is excluded if sandbox mode is enabled. |
app = self.get_app(sandbox=True) |
spec = self.get_url_spec(app, r'^/ws$') |
self.assertIsNone(spec) |
+ def test_proxy_excluded_in_sandbox_mode(self): |
+ # The juju-core HTTPS proxy is excluded if sandbox mode is enabled. |
+ app = self.get_app(sandbox=True) |
+ spec = self.get_url_spec(app, r'^/juju-core/(.*)$') |
+ self.assertIsNone(spec) |
+ |
def test_static_files(self): |
# The Juju GUI static files are correctly served. |
app = self.get_app() |