def side_effect_for_get_value(value, return_value):
 def side_effect(*args, **kwargs):
  '\n        A side effect for tests which returns a value based\n        on a given argument otherwise return actual function.\n        '
  if (args[0] == value):
   return return_value
  else:
   return DEFAULT
 return side_effect

def side_effect_for_get_value ( value , return_value ) : def side_effect ( * args , ** kwargs ) : if ( args [ 0 ] == value ) : return return_value else : return DEFAULT return side_effect
returns a side_effect with given return value for a given value .