CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
OrderedSet.TestModuleCommand Class Reference
Inheritance diagram for OrderedSet.TestModuleCommand:

Public Member Functions

def setUp
 
def testSetOperations
 

Detailed Description

Definition at line 90 of file OrderedSet.py.

Member Function Documentation

def OrderedSet.TestModuleCommand.setUp (   self)
Nothing to do 

Definition at line 91 of file OrderedSet.py.

91 
92  def setUp(self):
93  """Nothing to do """
pass
def OrderedSet.TestModuleCommand.testSetOperations (   self)

Definition at line 94 of file OrderedSet.py.

94 
95  def testSetOperations(self):
96  s = OrderedSet('abracadaba')
97  t = OrderedSet('simsalabim')
98  self.assertEqual(str((s | t)), "OrderedSet(['a', 'b', 'r', 'c', 'd', 's', 'i', 'm', 'l'])")
99  self.assertEqual(str((s & t)), "OrderedSet(['a', 'b'])")
100  self.assertEqual(str(s - t),"OrderedSet(['r', 'c', 'd'])")
unittest.main()
#define str(s)