def dont_use_config_in_tempest_lib(logical_line, filename):
 if ('tempest/lib/' not in filename):
  return
 if (('tempest.config' in logical_line) or ('from tempest import config' in logical_line) or ('oslo_config' in logical_line)):
  msg = 'T114: tempest.lib can not have any dependency on tempest config.'
  (yield (0, msg))

def dont_use_config_in_tempest_lib ( logical_line , filename ) : if ( 'tempest/lib/' not in filename ) : return if ( ( 'tempest.config' in logical_line ) or ( 'from tempest import config' in logical_line ) or ( 'oslo_config' in logical_line ) ) : msg = 'T114: tempest.lib can not have any dependency on tempest config.' ( yield ( 0 , msg ) )
check that tempest .