def tests(path=None):
 if (path is None):
  path = os.path.join(os.path.dirname(__file__), 'testplan.org')
 return TestReaderStateMachine().extract_tests(path)

def tests ( path = None ) : if ( path is None ) : path = os . path . join ( os . path . dirname ( __file__ ) , 'testplan.org' ) return TestReaderStateMachine ( ) . extract_tests ( path )
convenience function to instantiate a testreaderstatematchine and invoke .