Lines Matching refs:tostring

419         self.assertEqual(ET.tostring(elem),
427 self.assertEqual(ET.tostring(elem),
435 self.assertEqual(ET.tostring(elem),
507 self.assertEqual(ET.tostring(element, encoding='unicode'),
510 self.assertEqual(ET.tostring(element, encoding='unicode'),
514 self.assertEqual(ET.tostring(element),
518 self.assertEqual(ET.tostring(element, "ascii"),
755 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
757 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
794 self.assertEqual(ET.tostring(ET.XML(bxml(encoding))), b'<xml />')
1021 self.assertEqual(ET.tostring(ET.ProcessingInstruction('test', 'instruction')),
1023 self.assertEqual(ET.tostring(ET.PI('test', 'instruction')),
1028 self.assertEqual(ET.tostring(ET.PI('test', '<testing&>')),
1030 self.assertEqual(ET.tostring(ET.PI('test', '<testing&>\xe3'), 'latin-1'),
1491 self.assertEqual(ET.tostring(tree, "utf-8"), b'<t\xc3\xa4g />')
1496 self.assertEqual(ET.tostring(tree, "utf-8"),
1501 self.assertEqual(ET.tostring(tree, "utf-8"),
1505 self.assertEqual(ET.tostring(tree, "utf-8"), b'<t\xc3\xa4g />')
1509 self.assertEqual(ET.tostring(tree, "utf-8"),
1575 self.assertEqual(ET.tostring(e),
1577 self.assertEqual(ET.XML(ET.tostring(e)).get("text"),
1579 self.assertEqual(ET.tostring(ET.XML(ET.tostring(e))),
1621 self.assertEqual(ET.tostring(e),
1625 self.assertEqual(ET.tostring(e),
1631 self.assertEqual(ET.tostring(e),
1677 self.assertEqual(ET.tostring(e, 'ascii'),
1682 self.assertEqual(ET.tostring(e, 'ascii'),
1690 self.assertEqual(ET.tostring(e), b'<ns0:localname xmlns:ns0="${stuff}" />')
3070 ET.tostring(root, 'unicode'),
3073 ET.tostring(root, 'utf-16'),
3079 ET.tostring(root, 'unicode'),
3082 ET.tostring(root, 'unicode', short_empty_elements=True),
3085 ET.tostring(root, 'unicode', short_empty_elements=False),