tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
def testReconfiguringDoesntReappendLineToEnvFile(self):
    """Calling configure_ghfs twice shouldn't re-add lines to hadoop-env.sh."""
    self._SetDefaultValidFlags()
    self._flag_values_copy.dry_run = False
    self._test_cmd.Run(None)
    self._test_cmd.Run(None)

    with open(self._hadoop_env_filename, 'r') as f:
      self.assertEqual(2, len(f.readlines()))
Calling configure_ghfs twice shouldn't re-add lines to hadoop-env.sh.
Calling configure_ghfs twice shouldn't re-add lines to hadoop-env.sh.
Calling configure_ghfs twice shouldn ' t re - add lines to hadoop - env . sh .
def testReconfiguringDoesntReappendLineToEnvFile(self):
    self._SetDefaultValidFlags()
    self._flag_values_copy.dry_run = False
    self._test_cmd.Run(None)
    self._test_cmd.Run(None)
    with open(self._hadoop_env_filename, 'r') as f:
      self.assertEqual(2, len(f.readlines()))
def testReconfiguringDoesntReappendLineToEnvFile ( self ) : self . _SetDefaultValidFlags ( ) self . _flag_values_copy . dry_run = False self . _test_cmd . Run ( None ) self . _test_cmd . Run ( None ) with open ( self . _hadoop_env_filename , 'r' ) as f : self . assertEqual ( 2 , len ( f . readlines ( ) ) )
Calling configure_ghfs twice shouldn't re-add lines to hadoop-env.sh.
Calling configure_ghfs twice shouldn ' t re - add lines to hadoop - env . sh .
"""Calling configure_ghfs twice shouldn't re-add lines to hadoop-env.sh."""
self