예제 #1
0
 def test_unicode_repr3(self):
     x = etree.ProcessingInstruction(_str('Å'), _str('\u0131'))
     repr(x)
예제 #2
0
 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>')