Ejemplo n.º 1
0
 def test_distance_per_rotation(self):
     wheels = Wheels()
     self.assertIsInstance(wheels.distance_per_rotation(), float)
Ejemplo n.º 2
0
 def test_perform_move(self):
     wheels = Wheels()
     self.assertEqual(wheels.wheel_rotations, 0)
     wheels.perform_move()
     self.assertEqual(wheels.wheel_rotations, 1)
Ejemplo n.º 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)