def test_has_no_move(): individual = Individual(is_zombie=is_zombie, x_coord=x, y_coord=y, moves=moves) while individual.has_move(): individual.get_move() assert individual.has_move() == False
def test_moves(): individual = Individual(is_zombie=is_zombie, x_coord=x, y_coord=y, moves=moves) for m in moves: assert m.lower() == individual.get_move()