Mercurial > genshi > mirror
comparison genshi/tests/output.py @ 727:9e466c16f40b trunk
Actually use HTMLSerializer in test.
author | cmlenz |
---|---|
date | Fri, 09 May 2008 13:43:20 +0000 |
parents | 3881a602048a |
children | be0b4a7b2fd4 |
comparison
equal
deleted
inserted
replaced
726:85ff66a8f453 | 727:9e466c16f40b |
---|---|
370 output = XML(text).render(HTMLSerializer) | 370 output = XML(text).render(HTMLSerializer) |
371 self.assertEqual('<foo> Do not mess \n\n with me </foo>', output) | 371 self.assertEqual('<foo> Do not mess \n\n with me </foo>', output) |
372 | 372 |
373 def test_empty_script(self): | 373 def test_empty_script(self): |
374 text = '<script src="foo.js" />' | 374 text = '<script src="foo.js" />' |
375 output = XML(text).render(XHTMLSerializer) | 375 output = XML(text).render(HTMLSerializer) |
376 self.assertEqual('<script src="foo.js"></script>', output) | 376 self.assertEqual('<script src="foo.js"></script>', output) |
377 | 377 |
378 def test_script_escaping(self): | 378 def test_script_escaping(self): |
379 text = '<script>if (1 < 2) { alert("Doh"); }</script>' | 379 text = '<script>if (1 < 2) { alert("Doh"); }</script>' |
380 output = XML(text).render(HTMLSerializer) | 380 output = XML(text).render(HTMLSerializer) |