
from unittest import TestCase
from rover import Rover

class TestRover(TestCase):

    def setUp(self):
        self.rover = Rover()

    def test_rover_compass(self):
        assert self.rover.compass == ['N', 'E', 'S', 'W']


from unittest import TestCase
from rover import Rover

class TestRover(TestCase):

    def setUp(self):
        self.rover = Rover()

    def test_rover_compass(self):
        assert self.rover.compass == ['N', 'E', 'S', 'W']

    def test_rover_position(self):
        assert self.rover.position == (self.rover.x, self.rover.y, self.rover.direction)

Add failing rover position reporting test
Add failing rover position reporting test

  
  from unittest import TestCase
  from rover import Rover
  
  class TestRover(TestCase):
  
      def setUp(self):
          self.rover = Rover()
  
      def test_rover_compass(self):
          assert self.rover.compass == ['N', 'E', 'S', 'W']
  
+     def test_rover_position(self):
+         assert self.rover.position == (self.rover.x, self.rover.y, self.rover.direction)
+ 
Add failing rover position reporting test
## Code Before:

from unittest import TestCase
from rover import Rover

class TestRover(TestCase):

    def setUp(self):
        self.rover = Rover()

    def test_rover_compass(self):
        assert self.rover.compass == ['N', 'E', 'S', 'W']

## Instruction:
Add failing rover position reporting test
## Code After:

from unittest import TestCase
from rover import Rover

class TestRover(TestCase):

    def setUp(self):
        self.rover = Rover()

    def test_rover_compass(self):
        assert self.rover.compass == ['N', 'E', 'S', 'W']

    def test_rover_position(self):
        assert self.rover.position == (self.rover.x, self.rover.y, self.rover.direction)
