def test_polish_interval_tuple(self): st, end = _polish_interval((1, 2)) self.assertEquals(st, 1) self.assertEquals(end, 2)
def test_polish_interval_point(self): st, end = _polish_interval(1) self.assertEquals(st, 1) self.assertEquals(end, 2)
def test_polish_interval_empty(self): res = _polish_interval(()) self.assertTrue(res is None)