def METHOD_NAME(self):
    sim.setup(timestep=1.0)
    pop = sim.Population(10, sim.IF_curr_exp())
    view = pop[2:5]
    view.record(["v", "spikes"])
    target = {"spikes", "v"}
    assert target == set(pop._vertex.get_recording_variables())
    target1 = [2, 3, 4]
    assert target1 == pop._vertex.neuron_recorder._indexes["v"]
    view2 = pop[4:7]
    view2.record("v")
    target2 = [2, 3, 4, 5, 6]
    assert target2 == pop._vertex.neuron_recorder._indexes["v"]
    assert target1 == pop._vertex.neuron_recorder._indexes["spikes"]
    sim.end()