• Home
  • Raw
  • Download

Lines Matching refs:ElementTree

28 from xml.etree import ElementTree as pyET
107 from xml.etree import ElementTree
114 tree = ET.ElementTree(elem)
194 tree = ET.ElementTree(element)
197 tree = ET.ElementTree(element)
323 tree = ET.ElementTree(file=stringfile)
327 tree = ET.ElementTree(file=SIMPLE_XMLFILE)
338 for i in range(10): ET.ElementTree(elem).find('./'+str(i))
340 for i in range(10): ET.ElementTree(elem).find('./'+str(i))
342 for i in range(20): ET.ElementTree(elem).find('./'+str(i))
344 for i in range(600): ET.ElementTree(elem).find('./'+str(i))
1263 tree = ET.ElementTree(elem)
1488 t = ET.ElementTree(e)
1806 self.assertIsInstance(ET.ElementTree, type)
1854 self.assertEqual(ET.ElementTree(e).find('tag').tag, 'tag')
1858 self.assertEqual(ET.ElementTree(e).findtext('tag'), 'text')
1969 self.assertEqual(ET.ElementTree(e).find('tag').tag, 'tag')
1970 self.assertEqual(ET.ElementTree(e).find('./tag').tag, 'tag')
1976 self.assertEqual(ET.ElementTree(e).find('/tag').tag, 'tag')
1978 self.assertEqual(ET.ElementTree(e).find('section/tag').tag, 'tag')
1979 self.assertIsNone(ET.ElementTree(e).find('tog'))
1980 self.assertIsNone(ET.ElementTree(e).find('tog/foo'))
1982 self.assertEqual(ET.ElementTree(e).findtext('tag'), 'text')
1983 self.assertIsNone(ET.ElementTree(e).findtext('tog/foo'))
1984 self.assertEqual(ET.ElementTree(e).findtext('tog/foo', 'default'),
1986 self.assertEqual(ET.ElementTree(e).findtext('./tag'), 'text')
1988 self.assertEqual(ET.ElementTree(e).findtext('/tag'), 'text')
1989 self.assertEqual(ET.ElementTree(e).findtext('section/tag'), 'subtext')
1991 self.assertEqual(summarize_list(ET.ElementTree(e).findall('./tag')),
1994 it = ET.ElementTree(e).findall('/tag')
2023 tree = ET.ElementTree(None)
2569 tree = ET.ElementTree(ET.XML('''<site />'''))
2575 tree = ET.ElementTree(ET.XML('''<site />'''))
2583 tree = ET.ElementTree()
2589 tree = ET.ElementTree(ET.XML('''<site />'''))
2601 tree = ET.ElementTree()
2606 tree = ET.ElementTree(ET.XML('''<site />'''))