

@mock.patch('sahara.utils.xmlutils.load_hadoop_xml_defaults', return_value=[])
def test_get_possible_mapreduce_config_from(self, load_hadoop_xml_defaults):
    expected_config = {
        'configs': [],
    }
    actual_config = ch_helper.get_possible_mapreduce_config_from('sample-config.xml')
    load_hadoop_xml_defaults.assert_any_call('sample-config.xml')
    self.assertEqual(expected_config, actual_config)

dataset/ETHPy150Open openstack/sahara/sahara/tests/unit/plugins/vanilla/test_confighints_helper.py ConfigHintsHelperTest.test_get_possible_mapreduce_config_from/original