def test_occupied_returns_false_when_lilly_pad_not_occupied(self): # arrange lilly_pad_centre = Point(1, 1) pad = LillyPad(lilly_pad_centre, 2) pad.currently_occupied = False # act result = pad.occupied() # assert assert result is False
def test_find_possible_pads_returns_no_pads_if_nearby_pad_occupied(self): # arrange position = Point(2, 2) frog = Frog(position, 5, 0) pad = LillyPad(Point(2, 4), 1) pad.currently_occupied = True # act possible_pads = frog._find_possible_lilly_pads([pad]) # assert assert len(possible_pads) == 0