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_files_and_archives(self, files, archives):
        if files:
            x.add_tagged_list(self.doc, self.tag_name, 'file', files)
        if archives:
            x.add_tagged_list(self.doc, self.tag_name, 'archive', archives)

src/s/a/sahara-HEAD/sahara/service/edp/workflow_creator/base_workflow.py   sahara(Download)
    def _add_files_and_archives(self, files, archives):
        if files:
            x.add_tagged_list(self.doc, self.tag_name, 'file', files)
        if archives:
            x.add_tagged_list(self.doc, self.tag_name, 'archive', archives)

src/s/a/sahara-2014.1/sahara/tests/unit/utils/test_xml_utils.py   sahara(Download)
    def test_add_tagged_list(self):
        doc = self.create_default_doc()
        x.add_tagged_list(doc, 'test', 'list_item', ['a', 'b'])
        self.assertEqual(doc.toprettyxml(indent="  "),
                         """<?xml version="1.0" ?>

src/s/a/sahara-HEAD/sahara/tests/unit/utils/test_xml_utils.py   sahara(Download)
    def test_add_tagged_list(self):
        doc = self.create_default_doc()
        x.add_tagged_list(doc, 'test', 'list_item', ['a', 'b'])
        self.assertEqual(doc.toprettyxml(indent="  "),
                         """<?xml version="1.0" ?>