def test_point_is_ccw_false(): p = Point() q = Point(1, 0) r = Point(1, 1) assert not r.is_ccw(q, p)
def test_point_is_ccw_colinear(): p = Point() q = Point(1, 0) r = Point(2, 0) with pytest.raises(ColinearPoints): p.is_ccw(q, r)
def test_point_is_ccw_true(): p = Point() q = Point(1, 0) r = Point(1, 1) assert p.is_ccw(q, r)