diff --git a/test/server_test.py b/test/server_test.py index 23000f1c94..f142523e3a 100644 --- a/test/server_test.py +++ b/test/server_test.py @@ -112,6 +112,11 @@ def test_404(self): def test_api_404(self): self._test_404('/api/foo') + def test_root_redirect(self): + response = self.fetch("/", follow_redirects=False) + self.assertEqual(response.code, 302) + self.assertEqual(response.headers['Location'], 'static/visualiser/index.html') # assert that doesnt beging with leading slash ! + def test_api_preflight_cors_headers(self): response = self.fetch('/api/graph', method='OPTIONS', headers={'Origin': 'foo'}) headers = dict(response.headers)