def _get_test_value(test=None, **kwargs):
 ret = True
 if (test is None):
  if salt.utils.test_mode(test=test, **kwargs):
   ret = True
  else:
   ret = __opts__.get('test', None)
 else:
  ret = test
 return ret

def _get_test_value ( test = None , ** kwargs ) : ret = True if ( test is None ) : if salt . utils . test_mode ( test = test , ** kwargs ) : ret = True else : ret = __opts__ . get ( 'test' , None ) else : ret = test return ret
determine the correct value for the test flag .