Exemplo n.º 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)))
Exemplo n.º 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)))
Exemplo n.º 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)))
Exemplo n.º 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)))