def METHOD_NAME(self):
    sim.setup(timestep=1.0)
    pop = sim.Population(5, sim.IF_curr_exp())
    pop.record("v")
    with pytest.raises(ConfigurationException):
        pop.record(None, sampling_interval=2)
    sim.end()