def test_unicode_repr3(self): x = etree.ProcessingInstruction(_str('Å'), _str('\u0131')) repr(x)
def test_pi(self): with etree.xmlfile(self._file) as xf: xf.write(etree.ProcessingInstruction('pypi')) with xf.element('test'): pass self.assertXml('<?pypi ?><test></test>')