def test_dfs(self): """ Test for Execute a command on DFS """ with patch.object(hadoop, "_hadoop_cmd", return_value="A"): self.assertEqual(hadoop.dfs("command"), "A") self.assertEqual(hadoop.dfs(), "Error: command must be provided")
def test_dfs(self): ''' Test for Execute a command on DFS ''' with patch.object(hadoop, '_hadoop_cmd', return_value='A'): self.assertEqual(hadoop.dfs('command'), 'A') self.assertEqual(hadoop.dfs(), 'Error: command must be provided')