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-2014.1/sahara/service/edp/workflow_creator/base_workflow.py   sahara(Download)
    def _add_configuration_elements(self, configuration):
        if configuration:
            x.add_properties_to_configuration(self.doc, self.tag_name,
                                              configuration)
 

src/s/a/sahara-HEAD/sahara/service/edp/workflow_creator/base_workflow.py   sahara(Download)
    def _add_configuration_elements(self, configuration):
        if configuration:
            x.add_properties_to_configuration(self.doc, self.tag_name,
                                              configuration)
 

src/s/a/sahara-2014.1/sahara/tests/unit/utils/test_xml_utils.py   sahara(Download)
    def test_add_property_to_configuration(self):
        doc = self.create_default_doc()
        x.add_properties_to_configuration(doc, 'test', {'': 'empty1',
                                                        None: 'empty2'})
        self.assertEqual(doc.toprettyxml(indent="  "),
 
        test_conf = {'name1': 'value1', 'name2': 'value2'}
        x.add_properties_to_configuration(doc, 'test', test_conf)
 
        self.assertEqual(doc.toprettyxml(indent="  "),

src/s/a/sahara-HEAD/sahara/tests/unit/utils/test_xml_utils.py   sahara(Download)
    def test_add_property_to_configuration(self):
        doc = self.create_default_doc()
        x.add_properties_to_configuration(doc, 'test', {'': 'empty1',
                                                        None: 'empty2'})
        self.assertEqual(doc.toprettyxml(indent="  "),
 
        test_conf = {'name1': 'value1', 'name2': 'value2'}
        x.add_properties_to_configuration(doc, 'test', test_conf)
 
        self.assertEqual(doc.toprettyxml(indent="  "),