示例#1
0
def test_fake_instrument():

    fake = FakeInstrument()
    fake.write("Testing")
    assert fake.read() == "Testing"
    assert fake.read() == ""
    assert fake.values("5") == [5]
示例#2
0
 class Fake(FakeInstrument):
     x = FakeInstrument.control(
         "",
         set_command,
         "",
         dynamic=dynamic,
     )
示例#3
0
def test_fake_instrument():

    fake = FakeInstrument()
    fake.write("Testing")
    assert fake.read() == "Testing"
    assert fake.read() == ""
    assert fake.values("5") == [5]