Пример #1
0
 def test_distance_per_rotation(self):
     wheels = Wheels()
     self.assertIsInstance(wheels.distance_per_rotation(), float)
Пример #2
0
 def test_perform_move(self):
     wheels = Wheels()
     self.assertEqual(wheels.wheel_rotations, 0)
     wheels.perform_move()
     self.assertEqual(wheels.wheel_rotations, 1)
Пример #3
0
 def test_get_total_distance(self):
     wheels = Wheels()
     self.assertEqual(wheels.get_total_distance(), 0)
     wheels.perform_move()
     expected = 1 * 5.5 / .86
     self.assertEqual(wheels.get_total_distance(), expected)