Beispiel #1
0
 def test_on_false(self):
     a = Point(0, 1)
     b = Line(Point(0, 0), Point(1, 1))
     self.assertFalse(a.on(b))
Beispiel #2
0
 def test_on_true(self):
     a = Point(2, 2)
     b = Line(Point(0, 0), Point(1, 1))
     self.assertTrue(a.on(b))