def testPointOfIntersection(self): L1 = Line(Point(0, 0), Point(1, 1)) L2 = Line(-2, 1, 3) p = Point(-3, -3) self.assertEqual(L1.point_of_intersection(L2), p)