Skip to content

Commit 7f4d9e3

Browse files
committed
Add test about deletion
1 parent ae79996 commit 7f4d9e3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/tests.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@
5555
assert prop2.id() == 1
5656
# Adding the same instance returns the previous copy
5757
assert f2.add(prop) == prop2
58+
f2.remove(f2[1])
59+
try:
60+
print(prop2)
61+
assert False
62+
except:
63+
assert True
64+
try:
65+
f2[1]
66+
assert False
67+
except:
68+
assert True
69+
5870

5971
# A recursively obtained python dictionary representation
6072
# matches for copied instances as well

0 commit comments

Comments
 (0)