예제 #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")
예제 #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')
예제 #3
0
파일: hadoop_test.py 프로젝트: DaveQB/salt
    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')