def METHOD_NAME(self):
    data_types = {
        "v": DataType.S1615,
        "gsyn_exc": DataType.S1615,
        "gsyn_inh": DataType.S1615}
    recorder = NeuronRecorder(
        ["v", "gsyn_exc", "gsyn_inh"], data_types, ["spikes"], 5, [], [],
        [], [])
    recorder.set_recording("spikes", True)
    self.assertCountEqual(["spikes"], recorder.recording_variables)
    recorder.set_recording("spikes", False, indexes=[2, 4])
    self.assertCountEqual([0, 1, 3], recorder._indexes["spikes"])