def test_access_by_anonymous(): connection = Connection(server_url) with pytest.raises(GenestackException, match="Cannot parse content: No JSON object could be decoded"): connection.perform_request('/')
def test_access_by_anonymous(): connection = Connection(server_url) with pytest.raises( GenestackException, match="Cannot parse content: No JSON object could be decoded"): connection.perform_request('/')
def test_connection_404(): with pytest.raises(GenestackResponseError, match='<urlopen error 404 Client Error: Not Found for url:'): connection = Connection(server_url) connection.perform_request('/hhhh')
def test_connection_404(): with pytest.raises( GenestackResponseError, match='<urlopen error 404 Client Error: Not Found for url:'): connection = Connection(server_url) connection.perform_request('/hhhh')