tools/bdconfig/lib/google_hadoop/bdconfig_lib/xml_config_commands_test.py
def testCreateIfAbsent(self):
    """Test --create_if_absent_creates an empty config if one is not given."""
    if not self._test_cmd:
      return

    self._SetDefaultValidFlags()
    os.remove(self._flag_values_copy.configuration_file)

    self._flag_values_copy.create_if_absent = True
    self._flag_values_copy._AssertAllValidators()
    self._test_cmd.Run(None)

    self._ValidateNormalOperation()
Test --create_if_absent_creates an empty config if one is not given.
-create_if_absent_creates an empty config if one is not given.
- create_if_absent_creates an empty config if one is not given .
def testCreateIfAbsent(self):
    if not self._test_cmd:
      return
    self._SetDefaultValidFlags()
    os.remove(self._flag_values_copy.configuration_file)
    self._flag_values_copy.create_if_absent = True
    self._flag_values_copy._AssertAllValidators()
    self._test_cmd.Run(None)
    self._ValidateNormalOperation()
def testCreateIfAbsent ( self ) : if not self . _test_cmd : return self . _SetDefaultValidFlags ( ) os . remove ( self . _flag_values_copy . configuration_file ) self . _flag_values_copy . create_if_absent = True self . _flag_values_copy . _AssertAllValidators ( ) self . _test_cmd . Run ( None ) self . _ValidateNormalOperation ( )
Test --create_if_absent_creates an empty config if one is not given.
Test -- create_if_absent_creates an empty config if one is not given .
"""Test --create_if_absent_creates an empty config if one is not given."""
self