Beispiel #1
0
    def test_end_positive(self):
        interval = Interval(1, 3, is_end_inclusive=True)

        self.assertTrue(interval.includes(3))
Beispiel #2
0
    def test_end_negative(self):
        interval = Interval(1, 3)

        self.assertFalse(interval.includes(3))
Beispiel #3
0
    def test_start_negative(self):
        interval = Interval(1, 3)

        self.assertFalse(interval.includes(1))
Beispiel #4
0
    def test_start_positive(self):
        interval = Interval(1, 3, is_start_inclusive=True)

        self.assertTrue(interval.includes(1))
Beispiel #5
0
    def test_inside(self):
        interval = Interval(1, 3)

        self.assertTrue(interval.includes(2.5))