Mercurial > genshi > genshi-test
comparison markup/tests/template.py @ 210:c0c70dc5bf95
Fix regression introduced in [258]. More fixes needed?
author | cmlenz |
---|---|
date | Tue, 29 Aug 2006 17:35:32 +0000 |
parents | 835203f3b8fd |
children | 0a14c2a06be3 |
comparison
equal
deleted
inserted
replaced
209:5b422db07359 | 210:c0c70dc5bf95 |
---|---|
577 </div>""", str(tmpl.generate(tagname='greeting'))) | 577 </div>""", str(tmpl.generate(tagname='greeting'))) |
578 self.assertEqual("""<div> | 578 self.assertEqual("""<div> |
579 <greeting name="Dude"/> | 579 <greeting name="Dude"/> |
580 </div>""", str(tmpl.generate(tagname='sayhello'))) | 580 </div>""", str(tmpl.generate(tagname='sayhello'))) |
581 | 581 |
582 def test_content_directive_in_match(self): | |
583 tmpl = Template("""<html xmlns:py="http://markup.edgewall.org/"> | |
584 <div py:match="foo">I said <q py:content="select('text()')">something</q>.</div> | |
585 <foo>bar</foo> | |
586 </html>""") | |
587 self.assertEqual("""<html> | |
588 <div>I said <q>bar</q>.</div> | |
589 </html>""", str(tmpl.generate())) | |
590 | |
582 # FIXME | 591 # FIXME |
583 #def test_match_after_step(self): | 592 #def test_match_after_step(self): |
584 # tmpl = Template("""<div xmlns:py="http://markup.edgewall.org/"> | 593 # tmpl = Template("""<div xmlns:py="http://markup.edgewall.org/"> |
585 # <span py:match="div/greeting"> | 594 # <span py:match="div/greeting"> |
586 # Hello ${select('@name')} | 595 # Hello ${select('@name')} |