Beispiel #1
0
 def test_inside_should_return_false_if_time_is_outside_period(self):
     tp = TimePeriod(ATimeType(), ATime(0), ATime(4))
     self.assertFalse(tp.inside(ATime(5)))
Beispiel #2
0
 def test_inside_should_return_false_if_time_is_outside_period(self):
     tp = TimePeriod(ATimeType(), ATime(0), ATime(4))
     self.assertFalse(tp.inside(ATime(5)))
Beispiel #3
0
 def test_inside_should_return_true_if_time_is_on_higher_edge(self):
     tp = TimePeriod(ATimeType(), ATime(0), ATime(4))
     self.assertTrue(tp.inside(ATime(4)))
Beispiel #4
0
 def test_inside_should_return_true_if_time_is_on_higher_edge(self):
     tp = TimePeriod(ATimeType(), ATime(0), ATime(4))
     self.assertTrue(tp.inside(ATime(4)))