tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
def _ValidateFlagFailures(self, failure_modes):
    """Helper for iterating over a list of expected illegal flag values.

    Args:
      failure_modes: List of flag/value pairs which should cause an error.
    """
    for failure_arg in failure_modes:
      with self.assertRaises(flags.IllegalFlagValue):
        print 'Validating expected failure setting %s = %s' % (
            failure_arg[0], failure_arg[1])
        self._flag_values_copy.__setattr__(failure_arg[0], failure_arg[1])
Helper for iterating over a list of expected illegal flag values.

    Args:
      failure_modes: List of flag/value pairs which should cause an error.
    
Helper for iterating over a list of expected illegal flag values.
Helper for iterating over a list of expected illegal flag values .
def _ValidateFlagFailures(self, failure_modes):
    for failure_arg in failure_modes:
      with self.assertRaises(flags.IllegalFlagValue):
        print 'Validating expected failure setting %s = %s' % (
            failure_arg[0], failure_arg[1])
        self._flag_values_copy.__setattr__(failure_arg[0], failure_arg[1])
def _ValidateFlagFailures ( self , failure_modes ) : for failure_arg in failure_modes : with self . assertRaises ( flags . IllegalFlagValue ) : print 'Validating expected failure setting %s = %s' % ( failure_arg [ 0 ] , failure_arg [ 1 ] ) self . _flag_values_copy . __setattr__ ( failure_arg [ 0 ] , failure_arg [ 1 ] )
Helper for iterating over a list of expected illegal flag values.
Helper for iterating over a list of expected illegal flag values .
"""Helper for iterating over a list of expected illegal flag values.

    Args:
      failure_modes: List of flag/value pairs which should cause an error.
    """
self
failure_modes
List of flag/value pairs which should cause an error.
List of flag / value pairs which should cause an error .