@@ -0,0 +1,820 @@
+from myria_web_main import Application%0Afrom webtest import TestApp%0A%0Aapp = TestApp(Application(hostname='fake.fake', port=12345))%0A%0Adef test_redirect():%0A    response = app.get('/')%0A    assert response.status_code == 301%0A    assert response.headers%5B'Location'%5D%0A    assert response.headers%5B'Location'%5D.endswith('/editor')%0A%0Adef test_editor_loads():%0A    response = app.get('/editor')%0A    assert response.status_code == 200%0A    assert 'error connecting to fake.fake:12345' in str(response)%0A%0Adef test_queries_loads():%0A    response = app.get('/queries')%0A    assert response.status_code == 200%0A    assert 'error connecting to fake.fake:12345' in str(response)%0A%0A%0Adef test_datasets_loads():%0A    response = app.get('/datasets')%0A    assert response.status_code == 200%0A    assert 'error connecting to fake.fake:12345' in str(response)%0A

test that the webapp still loads when the rest server is down