def test_ordinary(self): interval = Interval(-1.5, 10) self.assertEqual(interval.get_formatted(), '(-1.5, 10)')
def test_inclusive(self): interval = Interval(1, 3, is_end_inclusive=True) self.assertEqual(interval.get_formatted(), '(1, 3]')