def testCreateEndDateIndex1(self): # test 100% the same end spec self.assertEqual( createItems.createEndDateIndex('10:100', [1, 2, 3, 4, 5]), { 1: 10, 2: 10, 3: 10, 4: 10, 5: 10 })
def testCreateEndDateIndex2(self): # test mixed spec values = createItems.createEndDateIndex('3:30,6:30,10:40', [1,2,3,4,5,6,7,8,9,10]).values() values.sort() # unrandomize self.assertEqual(values, [3, 3, 3, 6, 6, 6, 10, 10, 10, 10])
def testCreateEndDateIndex1(self): # test 100% the same end spec self.assertEqual(createItems.createEndDateIndex('10:100',[1,2,3,4,5]), {1: 10, 2: 10, 3: 10, 4: 10, 5: 10})
def testCreateEndDateIndex2(self): # test mixed spec values = createItems.createEndDateIndex( '3:30,6:30,10:40', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).values() values.sort() # unrandomize self.assertEqual(values, [3, 3, 3, 6, 6, 6, 10, 10, 10, 10])