def test_execute_fails_with_graphs_with_isles(): g = make_a_graph_with_isles() with pytest.raises(exceptions.GraphExecutionError): g.execute() pytest.fail()