예제 #1
0
 def test_find_slot_with_ending_date2(self):
     # This tests an infinite loop case
     delta1 = timedelta(0.25)
     timeline = Timeline(util.nov1 + delta1)
     my_slot, containing_slot_index = timeline.find_slot_with_ending_date(util.nov7, 0.1)
     self.assertEqual(Slot(4.4, 4.5), my_slot)
     return
예제 #2
0
 def test_find_slot_with_ending_date2(self):
     # This tests an infinite loop case
     delta1 = timedelta(0.25)
     timeline = Timeline(util.nov1 + delta1)
     my_slot, containing_slot_index = timeline.find_slot_with_ending_date(
         util.nov7, 0.1)
     self.assertEqual(Slot(4.4, 4.5), my_slot)
     return
예제 #3
0
 def test_find_slot_with_ending_date(self):
     timeline = Timeline(util.nov1)
     my_slot, containing_slot_index = timeline.find_slot_with_ending_date(util.nov7, 0.1)
     self.assertEqual(Slot(4.4, 4.5), my_slot)
     return
예제 #4
0
 def test_find_slot_with_ending_date(self):
     timeline = Timeline(util.nov1)
     my_slot, containing_slot_index = timeline.find_slot_with_ending_date(
         util.nov7, 0.1)
     self.assertEqual(Slot(4.4, 4.5), my_slot)
     return