def test_compute_center_from_both_tangents_but_same_points(self):
     candidate = Arc.compute_center_from_both_tangents(
         p0=Point(0, 0),
         p1=Point(0, 0),
         tangent_p0=Point(1, 1),
         tangent_p1=Point(1, -1))
     assert candidate == Point(0, 0)
 def test_compute_center_from_both_tangents_simple(self):
     candidate = Arc.compute_center_from_both_tangents(
         p0=Point(-1, 0),
         p1=Point(1, 0),
         tangent_p0=Point(0, 1),
         tangent_p1=Point(0, -1))
     assert candidate == Point(0, 0)
 def test_compute_center_from_both_tangents_impossible(self):
     with pytest.raises(AssertionError) as ae:
         Arc.compute_center_from_both_tangents(p0=Point(-5, 2),
                                               p1=Point(1, 0),
                                               tangent_p0=Point(0, 1),
                                               tangent_p1=Point(1, -1))