def test_ant_grid_turn_dir_right_to_left_when_activated(self): ant = AntGrid() ant.dir = "left" ant.turn(activated=True) self.assertEqual("down", ant.dir)
def test_ant_grid_turn_dir_right_to_left_when_unactivated(self): ant = AntGrid() ant.dir = "left" ant.turn(activated=False) self.assertEqual("up", ant.dir)