Exemple #1
0
def test_fake_instrument():

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

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