def test_default_initialization(self): p1 = IntegerPoint() self.assertTupleEqual(p1.tuple(), (0, 0))
def test_tuple(self): p1 = IntegerPoint(0, 1) p2 = IntegerPoint(1, 1) res = IntegerSegment(p1, p2) self.assertTupleEqual(res.tuple(), (p1.tuple(), p2.tuple()))