Skip to content

Commit 8c81b31

Browse files
committed
test: extended test for attributes of copied graph
1 parent 34bbf19 commit 8c81b31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_graph_attributes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ def test_copying_graph_copies_attributes():
3434
assert g2.attrs["age"] == 42
3535
assert g2.attrs["name"] == "Zachary karate club graph"
3636

37-
g2.attrs
37+
del g2.attrs["age"]
38+
assert "age" not in g2.attrs
39+
assert g.attrs["age"] == 42

0 commit comments

Comments
 (0)