def test_spike_rejection():
    assert (device.spike_threshold == 2)
    for level in range(12):
        device.spike_threshold = level
        assert (device.spike_threshold == level)
def test_spike_rejection():
    assert (device.spike_threshold == 2)
    for level in range(12):
        device.spike_threshold = level
        assert (device.spike_threshold == level)