From 045e51a9a557c829d184257b32d594e7b3c9ba8a Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 24 Aug 2002 02:56:01 +0000 Subject: [PATCH] Expanded tests for sets of sets. --- Lib/test/test_sets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index a2aa69a45f0..b56219be244 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 #==============================================================================