def no_setting_conf_directly_in_tests(logical_line, filename):
 if ('nova/tests/' in filename):
  res = conf_attribute_set_re.match(logical_line)
  if res:
   (yield (0, 'N320: Setting CONF.* attributes directly in tests is forbidden. Use self.flags(option=value) instead'))

def no_setting_conf_directly_in_tests ( logical_line , filename ) : if ( 'nova/tests/' in filename ) : res = conf_attribute_set_re . match ( logical_line ) if res : ( yield ( 0 , 'N320: Setting CONF.* attributes directly in tests is forbidden. Use self.flags(option=value) instead' ) )
check for setting conf .