def testNoConnection(): endpoint = BluefloodEndpoint(ingest_url='http://localhost:9623', retrieve_url='http://localhost:8231') with pytest.raises(Exception): d = yield endpoint.commit() with pytest.raises(Exception): yield endpoint.retrieve_points('', 0, 0, 0) with pytest.raises(Exception): yield endpoint.retrieve_resolution('', 0, 0)