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