Ejemplo n.º 1
0
def test_stateful_subscription(fresh_RE):
    RE = fresh_RE
    assert RE.state == 'idle'
    token = RE.subscribe('event', print_event_time)
    RE(simple_scan_saving(det, motor))
    RE.unsubscribe(token)
    assert RE.state == 'idle'
Ejemplo n.º 2
0
def test_stateful_subscription(fresh_RE):
    RE = fresh_RE
    assert RE.state == 'idle'
    token = RE.subscribe('event', print_event_time)
    RE(simple_scan_saving(det, motor))
    RE.unsubscribe(token)
    assert RE.state == 'idle'
Ejemplo n.º 3
0
def test_stateful_subscription():
    assert_equal(RE.state, 'idle')
    token = RE.subscribe('event', print_event_time)
    RE(simple_scan_saving(det, motor))
    RE.unsubscribe(token)
    assert_equal(RE.state, 'idle')
Ejemplo n.º 4
0
def test_calltime_subscription():
    assert_equal(RE.state, 'idle')
    RE(simple_scan_saving(det, motor), subs={'event': print_event_time})
    assert_equal(RE.state, 'idle')
Ejemplo n.º 5
0
def test_calltime_subscription(fresh_RE):
    RE = fresh_RE
    assert RE.state == 'idle'
    RE(simple_scan_saving(det, motor), subs={'event': print_event_time})
    assert RE.state == 'idle'
Ejemplo n.º 6
0
def test_stateful_subscription():
    assert_equal(RE.state, 'idle')
    token = RE.subscribe('event', print_event_time)
    RE(simple_scan_saving(det, motor))
    RE.unsubscribe(token)
    assert_equal(RE.state, 'idle')
Ejemplo n.º 7
0
def test_calltime_subscription():
    assert_equal(RE.state, 'idle')
    RE(simple_scan_saving(det, motor), subs={'event': print_event_time})
    assert_equal(RE.state, 'idle')
Ejemplo n.º 8
0
def test_stateful_subscription(RE, hw):
    assert RE.state == 'idle'
    token = RE.subscribe(print_event_time, 'event')
    RE(simple_scan_saving(hw.det, hw.motor))
    RE.unsubscribe(token)
    assert RE.state == 'idle'
Ejemplo n.º 9
0
def test_calltime_subscription(RE, hw):
    assert RE.state == 'idle'
    RE(simple_scan_saving(hw.det, hw.motor), {'event': print_event_time})
    assert RE.state == 'idle'
Ejemplo n.º 10
0
def test_calltime_subscription(fresh_RE):
    RE = fresh_RE
    assert RE.state == 'idle'
    RE(simple_scan_saving(det, motor), subs={'event': print_event_time})
    assert RE.state == 'idle'
Ejemplo n.º 11
0
def test_stateful_subscription(RE, hw):
    assert RE.state == 'idle'
    token = RE.subscribe(print_event_time, 'event')
    RE(simple_scan_saving(hw.det, hw.motor))
    RE.unsubscribe(token)
    assert RE.state == 'idle'
Ejemplo n.º 12
0
def test_calltime_subscription(RE, hw):
    assert RE.state == 'idle'
    RE(simple_scan_saving(hw.det, hw.motor), {'event': print_event_time})
    assert RE.state == 'idle'