def test_multi_derived_basic(multi_derived_ro: Device): assert multi_derived_ro.cpt.signals == [ multi_derived_ro.a, multi_derived_ro.b, multi_derived_ro.c, ] multi_derived_ro.wait_for_connection() assert multi_derived_ro.connected assert multi_derived_ro.cpt.get() == (1 + 2 + 3)
def test_multi_derived_rw_basic(multi_derived_rw: Device): multi_derived_rw.wait_for_connection() assert multi_derived_rw.connected assert multi_derived_rw.cpt.get() == (1 + 2 + 3) multi_derived_rw.cpt.set(12).wait(timeout=1) assert multi_derived_rw.get() == ( 12, 4., 4., 4., ) multi_derived_rw.cpt.set(24).wait(timeout=1) assert multi_derived_rw.get() == ( 24, 8., 8., 8., )
def test_multi_derived_rw_wait_for_connection(multi_derived_rw: Device): multi_derived_rw.cpt.wait_for_connection() assert multi_derived_rw.cpt.connected multi_derived_rw.wait_for_connection() assert multi_derived_rw.connected assert multi_derived_rw.cpt.get() == (1 + 2 + 3)