[Zope3-checkins] CVS: Zope3/src/zope/app/dtmlpage/tests -
test_dtmlpage.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Mar 18 23:26:55 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/dtmlpage/tests
In directory cvs.zope.org:/tmp/cvs-serv14372/src/zope/app/dtmlpage/tests
Modified Files:
test_dtmlpage.py
Log Message:
Adjusted testing code to provide and expect unicode.
=== Zope3/src/zope/app/dtmlpage/tests/test_dtmlpage.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/dtmlpage/tests/test_dtmlpage.py:1.3 Sat Mar 13 16:03:09 2004
+++ Zope3/src/zope/app/dtmlpage/tests/test_dtmlpage.py Thu Mar 18 23:26:24 2004
@@ -49,27 +49,27 @@
def test(self):
page = DTMLPage()
page.setSource(
- '<html>'
- '<head><title><dtml-var title></title></head>'
- '<body>'
- '<a href="<dtml-var "REQUEST.URL[\'1\']">">'
- '<dtml-var name>'
- '</a></body></html>'
+ u'<html>'
+ u'<head><title><dtml-var title></title></head>'
+ u'<body>'
+ u'<a href="<dtml-var "REQUEST.URL[\'1\']">">'
+ u'<dtml-var name>'
+ u'</a></body></html>'
)
- page = contained(page, Data(name='zope'))
+ page = contained(page, Data(name=u'zope'))
- out = page.render(Data(URL={'1': 'http://foo.com/'}),
- title="Zope rules")
+ out = page.render(Data(URL={u'1': u'http://foo.com/'}),
+ title=u"Zope rules")
out = ' '.join(out.split())
self.assertEqual(
out,
- '<html><head><title>Zope rules</title></head><body>'
- '<a href="http://foo.com/">'
- 'zope'
- '</a></body></html>'
+ u'<html><head><title>Zope rules</title></head><body>'
+ u'<a href="http://foo.com/">'
+ u'zope'
+ u'</a></body></html>'
)
def test_suite():
More information about the Zope3-Checkins
mailing list