Changeset 2630:389d8f4e136e in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/31/07 11:33:59 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add a publishing test for specials.url

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_publish.py

    r2627 r2630  
    117117    assert node.asBytes(prefixdefault="h") == """<h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ns="http://www.w3.org/1999/xlink" ns:title="the foo bar"></h:html>""" 
    118118    assert node.asBytes(prefixes={html: "h", xlink: "xl"}) == """<h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xl="http://www.w3.org/1999/xlink" xl:title="the foo bar"></h:html>""" 
     119 
     120 
     121def test_publishspecialsurl(): 
     122    node = specials.url("root:gurk.html") 
     123    assert node.asBytes() == """root:gurk.html""" 
     124    assert node.asBytes(base="root:gurk.html") == """""" 
     125    assert node.asBytes(base="root:hurz.html") == """gurk.html""" 
    119126 
    120127