test_rover.py 301 B

123456789101112
  1. from rover import Rover
  2. from rover.rover import DIRECTIONS
  3. def test_can_land():
  4. assert Rover()
  5. def test_has_location_and_direction():
  6. rover = Rover()
  7. assert isinstance(rover.location.x, int)
  8. assert isinstance(rover.location.y, int)
  9. assert rover.location.direction in DIRECTIONS