add test for nowiki tags inside other tags
authorralf@brainbot.com
Tue Nov 18 14:18:48 2008 +0100 (6 weeks ago)
changeset 179811e023ce3aef
parent 1797e61da4413577
child 180079ece20c1310
add test for nowiki tags inside other tags
tests/test_parser.py
       1 --- a/tests/test_parser.py	Tue Nov 18 13:22:42 2008 +0100
       2 +++ b/tests/test_parser.py	Tue Nov 18 14:18:48 2008 +0100
       3 @@ -756,3 +756,14 @@
       4      d = DummyDB()
       5      r=uparser.parseString(title='', raw='\ttext', wikidb=d)
       6      assert not r.find(parser.PreFormatted), 'unexpected PreFormatted node'
       7 +
       8 +@xfail
       9 +def test_nowiki_inside_tags():
      10 +    """http://code.pediapress.com/wiki/ticket/366"""
      11 +    
      12 +    s = """<span style="color:<nowiki>#</nowiki>DF6108;">foo</span>"""
      13 +    r=parse(s)
      14 +    tags = r.find(parser.TagNode)
      15 +    assert tags, "no tag node found"
      16 +    
      17 +