mirror of https://github.com/python/cpython
Expanded tests for sets of sets.
This commit is contained in:
parent
fa1480f686
commit
045e51a9a5
|
@ -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
|
||||
|
||||
#==============================================================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue