Example #1
0
    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")
Example #2
0
    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')
Example #3
0
    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')