def test_graph_duplicate_vertex(): a = Vertex(Vertex._make_test_vertex()) g = Graph([a, a]) assert g.size() == 1