def test_seqdev(session): # Device move sm1 = session.getDevice('sm1') sd = SeqDev(sm1, 3) assert repr(sd) == 'sm1 -> 3.000' sm1.start(0) sm1.wait() assert sm1.read(0) == 0 sd.check() sd.run() while not sd.isCompleted(): pass assert sm1.read(0) == 3
def check(self): self.set_limit() return SeqDev.check(self)