CMS 3D CMS Logo

List of all members | Public Member Functions
OrderedSet.TestModuleCommand Class Reference
Inheritance diagram for OrderedSet.TestModuleCommand:

Public Member Functions

def setUp (self)
 
def testSetOperations (self)
 

Detailed Description

Definition at line 90 of file OrderedSet.py.

Member Function Documentation

◆ setUp()

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

Definition at line 91 of file OrderedSet.py.

91  def setUp(self):
92  """Nothing to do """
93  pass

◆ testSetOperations()

def OrderedSet.TestModuleCommand.testSetOperations (   self)

Definition at line 94 of file OrderedSet.py.

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