Mercurial > genshi > mirror
diff markup/tests/output.py @ 105:71f3db26eecb trunk
Include processing instructions in serialized streams.
author | cmlenz |
---|---|
date | Fri, 28 Jul 2006 15:15:50 +0000 |
parents | 80386d62814f |
children | 10279d2eeec9 |
line wrap: on
line diff
--- a/markup/tests/output.py +++ b/markup/tests/output.py @@ -73,6 +73,11 @@ output = stream.render(XMLSerializer) self.assertEqual('<!--foo bar-->', output) + def test_processing_instruction(self): + stream = Stream([(Stream.PI, ('python', 'x = 2'), ('?', -1, -1))]) + output = stream.render(XMLSerializer) + self.assertEqual('<?python x = 2?>', output) + def suite(): suite = unittest.TestSuite()