Example #1
0
def test_load_non_existant_dmf_device():
    """
    test loading DMF device file that doesn't exist
    """
    DmfDevice.load(path(__file__).parent /
                   path('devices') /
                   path('no device'))
Example #2
0
def _import_device(i, root):
    svg_path = root.joinpath('svg_files', 'test_device_%d.svg' % i)
    device = DmfDevice.load_svg(svg_path)
    time.sleep(1.0)
Example #3
0
def load_device(name):
    DmfDevice.load(name)
    assert True