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

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

src/s/a/sahara-2014.1/sahara/tests/unit/plugins/hdp/test_ambariplugin.py   sahara(Download)
        cluster_config.configurations['ambari']['server.port'] = '9000'
 
        ambari_info = plugin.get_ambari_info(cluster_config)
        self.assertEqual('9000', ambari_info.port)
 
        #remove port
        del cluster_config.configurations['ambari']['server.port']
        ambari_info = plugin.get_ambari_info(cluster_config)

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/hdp/test_ambariplugin.py   sahara(Download)
        cluster_config.configurations['ambari']['server.port'] = '9000'
 
        ambari_info = plugin.get_ambari_info(cluster_config)
        self.assertEqual('9000', ambari_info.port)
 
        #remove port
        del cluster_config.configurations['ambari']['server.port']
        ambari_info = plugin.get_ambari_info(cluster_config)