예제 #1
0
 def test_visit_updates_the_visited_list(self):
     # arrange
     lilly_pad_centre = Point(1, 1)
     pad = LillyPad(lilly_pad_centre, 2)
     frog_id = 2
     # act
     pad.visit(frog_id)
     # assert
     assert frog_id in pad.visited_frogs
예제 #2
0
    def test_visit_updates_occupied_to_true(self):
        # arrange
        lilly_pad_centre = Point(1, 1)
        pad = LillyPad(lilly_pad_centre, 2)
        frog_id = 2
        # act
        pad.visit(frog_id)

        # assert
        assert pad.currently_occupied is True