def dont_import_local_tempest_into_lib(logical_line, filename):
 if ('tempest/lib/' not in filename):
  return
 if (not (('from tempest' in logical_line) or ('import tempest' in logical_line))):
  return
 if (('from tempest.lib' in logical_line) or ('import tempest.lib' in logical_line)):
  return
 msg = 'T112: tempest.lib should not import local tempest code to avoid circular dependency'
 (yield (0, msg))

def dont_import_local_tempest_into_lib ( logical_line , filename ) : if ( 'tempest/lib/' not in filename ) : return if ( not ( ( 'from tempest' in logical_line ) or ( 'import tempest' in logical_line ) ) ) : return if ( ( 'from tempest.lib' in logical_line ) or ( 'import tempest.lib' in logical_line ) ) : return msg = 'T112: tempest.lib should not import local tempest code to avoid circular dependency' ( yield ( 0 , msg ) )
check that tempest .