示例#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)))
示例#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)))
示例#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)))
示例#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)))