Expanded tests for sets of sets.

This commit is contained in:
Raymond Hettinger 2002-08-24 02:56:01 +00:00
parent fa1480f686
commit 045e51a9a5
1 changed files with 4 additions and 0 deletions

View File

@ -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
#==============================================================================