Example #1
0
 def test_namenode_format(self):
     """
     Test for Format a name node
     """
     with patch.object(hadoop, "_hadoop_cmd", return_value="A"):
         self.assertEqual(hadoop.namenode_format("force"), "A")
Example #2
0
 def test_namenode_format(self):
     '''
     Test for Format a name node
     '''
     with patch.object(hadoop, '_hadoop_cmd', return_value='A'):
         self.assertEqual(hadoop.namenode_format('force'), 'A')
Example #3
0
 def test_namenode_format(self):
     '''
     Test for Format a name node
     '''
     with patch.object(hadoop, '_hadoop_cmd', return_value='A'):
         self.assertEqual(hadoop.namenode_format('force'), 'A')