old_contents: import rml.element
  
  
  def test_create_element():
      e = rml.element.Element('BPM', 6.0)
      assert e.get_type() == 'BPM'
      assert e.get_length() == 6.0
  
  
  def test_add_element_to_family():
      e = rml.element.Element('dummy', 0.0)
      e.add_to_family('fam')
      assert 'fam' in e.get_families()
  
new_contents: import pkg_resources
  pkg_resources.require('cothread')
  import cothread
  import rml.element
  
  
  def test_create_element():
      e = rml.element.Element('BPM', 6.0)
      assert e.get_type() == 'BPM'
      assert e.get_length() == 6.0
  
  
  def test_add_element_to_family():
      e = rml.element.Element('dummy', 0.0)
      e.add_to_family('fam')
      assert 'fam' in e.get_families()
  
  
  def test_get_pv_value():
      PV = 'SR22C-DI-EBPM-04:SA:X'
      e = rml.element.Element('dummy', 0.0, pv=PV)
      result = e.get_pv('x')
      assert isinstance(result, float)
  
subject: Test before creating the get_pv() method