summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-08-24 02:56:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-08-24 02:56:01 (GMT)
commit045e51a9a557c829d184257b32d594e7b3c9ba8a (patch)
tree8e80ea2cac431fbd1b016f58c644dc1d20745ac3 /Lib/test
parentfa1480f6863729102ccf276e0fa8b9ea585b37c5 (diff)
downloadcpython-045e51a9a557c829d184257b32d594e7b3c9ba8a.zip
cpython-045e51a9a557c829d184257b32d594e7b3c9ba8a.tar.gz
cpython-045e51a9a557c829d184257b32d594e7b3c9ba8a.tar.bz2
Expanded tests for sets of sets.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py
index a2aa69a..b56219b 100644
--- a/Lib/test/test_sets.py
+++ b/Lib/test/test_sets.py
@@ -138,6 +138,10 @@ class TestSetOfSets(unittest.TestCase):
outer = Set([inner])
element = outer.pop()
assert type(element) == ImmutableSet, "Construct set of sets"
+ outer.add(inner) # Rebuild set of sets with .add method
+ outer.remove(inner)
+ assert outer == Set() # Verify that remove worked
+ outer.discard(inner) # Absence of KeyError indicates working fine
#==============================================================================