Example #1
0
def test_add_device():
    clear()
    add_device('foo')
    assert len(get_laboratory().devices()) == 1
    assert get_laboratory().devices()[0]['name'] == 'foo'
Example #2
0
def resolve_device_name(name):
    from config.Laboratory import get_laboratory
    return resolve_entity_name(name, 'device', get_laboratory().devices())