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)))
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)))