Back to index

python3.2  3.2.2
Public Member Functions
test.test_set.TestSetOfSets Class Reference

List of all members.

Public Member Functions

def test_constructor

Detailed Description

Definition at line 960 of file test_set.py.


Member Function Documentation

Definition at line 961 of file test_set.py.

00961 
00962     def test_constructor(self):
00963         inner = frozenset([1])
00964         outer = set([inner])
00965         element = outer.pop()
00966         self.assertEqual(type(element), frozenset)
00967         outer.add(inner)        # Rebuild set of sets with .add method
00968         outer.remove(inner)
00969         self.assertEqual(outer, set())   # Verify that remove worked
00970         outer.discard(inner)    # Absence of KeyError indicates working fine
00971 
00972 #==============================================================================

Here is the call graph for this function:


The documentation for this class was generated from the following file: