(self)
| 450 | self.assertAlmostEqual(self.nav.heading(), 0) |
| 451 | |
| 452 | def test_distance_method(self): |
| 453 | self.assertAlmostEqual(self.nav.distance(30, 40), 50) |
| 454 | vec = Vec2D(0.22, .001) |
| 455 | self.assertAlmostEqual(self.nav.distance(vec), 0.22000227271553355) |
| 456 | another_turtle = turtle.TNavigator() |
| 457 | another_turtle.left(90) |
| 458 | another_turtle.forward(10000) |
| 459 | self.assertAlmostEqual(self.nav.distance(another_turtle), 10000) |
| 460 | |
| 461 | |
| 462 | class TestTPen(unittest.TestCase): |
nothing calls this directly
no test coverage detected