Kaydet (Commit) 045e51a9 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Expanded tests for sets of sets.

üst fa1480f6
......@@ -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
#==============================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment