def test_no_rewind_device():
    class FakeSig:
        def get(self):
            return False

    det = SynGauss('det', motor, 'motor', center=0, Imax=1, sigma=1)
    det.rewindable = FakeSig()

    assert not all_safe_rewind([det])
def test_no_rewind_device():
    class FakeSig:
        def get(self):
            return False

    det = SynGauss("det", motor, "motor", center=0, Imax=1, sigma=1)
    det.rewindable = FakeSig()

    assert not all_safe_rewind([det])
Exemple #3
0
def test_no_rewind_device(hw):
    hw.det.rewindable = hw.bool_sig

    assert not all_safe_rewind([hw.det])
Exemple #4
0
def test_no_rewind_device(hw):
    hw.det.rewindable = hw.bool_sig

    assert not all_safe_rewind([hw.det])