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")
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')