def test_line_angle(p1, p2, angle): l = Line(Point(*p1), Point(*p2)) assert math.isclose(l.angle(), angle)