def test_graph_add_invalid_vertex(): g = Graph([Vertex(Vertex._make_test_vertex())]) assert_raises(TypeError, g.add_vertex, "String name")