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

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

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/hdp/test_ambariplugin.py   sahara(Download)
        self.assertEqual(13, len(service_components))
        components = service_components['HDFS']
        self.assertIn('NAMENODE', components)
        self.assertIn('DATANODE', components)
        self.assertIn('SECONDARY_NAMENODE', components)
        self.assertIn('HDFS_CLIENT', components)
 
        components = service_components['MAPREDUCE']
        self.assertIn('JOBTRACKER', components)

src/s/a/sahara-HEAD/sahara/tests/unit/swift/test_swift_helper.py   sahara(Download)
        result = h.get_swift_configs()
        self.assertEqual(8, len(result))
        self.assertIn({'name': "fs.swift.service.sahara.tenant",
                       'value': 'test_tenant', 'description': ''}, result)
        self.assertIn({'name': "fs.swift.service.sahara.http.port",
                       'value': '8080', 'description': ''}, result)
        self.assertIn({'name': "fs.swift.service.sahara.region",

src/s/a/sahara-HEAD/sahara/tests/unit/topology/test_topology.py   sahara(Download)
            del item['description']
        className = 'org.apache.hadoop.net.NetworkTopologyWithNodeGroup'
        self.assertIn({'name': "net.topology.impl",
                       'value': className},
                      result)
        self.assertIn({'name': "net.topology.nodegroup.aware",
        className = 'org.apache.hadoop.hdfs.server.namenode.' \
                    'BlockPlacementPolicyWithNodeGroup'
        self.assertIn({'name': "dfs.block.replicator.classname",
                       'value': className},
                      result)
            del item['description']
 
        self.assertIn({'name': "mapred.jobtracker.nodegroup.aware",
                       'value': 'true'},
                      result)
 
        self.assertIn({'name': "mapred.task.cache.levels",

src/s/a/sahara-2014.1/sahara/tests/unit/topology/test_topology.py   sahara(Download)
            del item['description']
        className = 'org.apache.hadoop.net.NetworkTopologyWithNodeGroup'
        self.assertIn({'name': "net.topology.impl",
                       'value': className},
                      result)
        self.assertIn({'name': "net.topology.nodegroup.aware",
        className = 'org.apache.hadoop.hdfs.server.namenode.' \
                    'BlockPlacementPolicyWithNodeGroup'
        self.assertIn({'name': "dfs.block.replicator.classname",
                       'value': className},
                      result)
            del item['description']
 
        self.assertIn({'name': "mapred.jobtracker.nodegroup.aware",
                       'value': 'true'},
                      result)
 
        self.assertIn({'name': "mapred.task.cache.levels",

src/s/a/sahara-2014.1/sahara/tests/unit/swift/test_swift_helper.py   sahara(Download)
        result = h.get_swift_configs()
        self.assertEqual(7, len(result))
        self.assertIn({'name': "fs.swift.service.sahara.tenant",
                       'value': 'test_tenant', 'description': ''}, result)
        self.assertIn({'name': "fs.swift.service.sahara.http.port",