import rml.machines


def test_machine_load_elements():
    lattice = rml.machines.get_elements(machine='SRI21', elemType='BPM')
    assert len(lattice) == 173
    for element in lattice.get_elements():
        assert element.get_pv_name('readback')

@@ -114,9 +114,10 @@
 elem
-T
+_t
 ype=
@@ -212,16 +212,27 @@
  assert 
+isinstance(
 element.
@@ -253,10 +253,90 @@
 eadback'
+, 'x'), str)%0A        assert isinstance(element.get_pv_name('readback', 'y'), str
 )%0A

Test if pvs are loaded correctly from the database