Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/vanilla/v1_2_1/test_dfsadmin_parsing.py   sahara(Download)
                "Remaining%": "93.42%"}
        expected = [exp1, exp2, exp3]
        res = sc.parse_dfs_report(big_string)
        self.assertItemsEqual(expected, res)
 
                                          "dfs_admin_0_nodes.txt"), "r")
        big_string = ins.read()
        res = sc.parse_dfs_report(big_string)
        self.assertEqual(0, len(res))
 
        big_string = ins.read()
        exp = {"Name": "10.155.0.94:50010", "Decommission Status": "Normal"}
        res = sc.parse_dfs_report(big_string)
        self.assertIn(exp, res)
 

src/s/a/sahara-2014.1/sahara/tests/unit/plugins/vanilla/v1_2_1/test_dfsadmin_parsing.py   sahara(Download)
                "Remaining%": "93.42%"}
        expected = [exp1, exp2, exp3]
        res = sc.parse_dfs_report(big_string)
        self.assertItemsEqual(expected, res)
 
                                          "dfs_admin_0_nodes.txt"), "r")
        big_string = ins.read()
        res = sc.parse_dfs_report(big_string)
        self.assertEqual(0, len(res))
 
        big_string = ins.read()
        exp = {"Name": "10.155.0.94:50010", "Decommission Status": "Normal"}
        res = sc.parse_dfs_report(big_string)
        self.assertIn(exp, res)