Commit 94dc3d49 authored by Hanno Schlichting's avatar Hanno Schlichting

Adjust tests to new zope.tal/zope.pagetemplate version

parent 4e9b8a5f
......@@ -41,7 +41,7 @@ A browser page that is a Page Template.
>>> view = self.folder.unrestrictedTraverse('testoid/owl.html')
>>> view()
u'<p>2</p>\n'
u'<p>2</p>'
A browser page that is a PageTemplate plus a view class:
......@@ -49,7 +49,7 @@ A browser page that is a PageTemplate plus a view class:
>>> isinstance(view, SimpleView)
True
>>> view()
u'<p>The falcon has taken flight</p>\n'
u'<p>The falcon has taken flight</p>'
Test pages that have been registered through the cumulative
<browser:pages> directive:
......
......@@ -210,9 +210,9 @@ class ZPTUnicodeEncodingConflictResolution(ZopeTestCase):
zpt = self.app['test']
from zope.publisher.base import DebugFlags
self.app.REQUEST.debug = DebugFlags()
self.assertEqual(zpt.pt_render(), unicode('<div>foo</div>\n'))
self.assertEqual(zpt.pt_render(), unicode('<div>foo</div>'))
self.app.REQUEST.debug.showTAL = True
self.assertEqual(zpt.pt_render(), unicode('<div tal:content="string:foo">foo</div>\n'))
self.assertEqual(zpt.pt_render(), unicode('<div tal:content="string:foo">foo</div>'))
self.app.REQUEST.debug.sourceAnnotations = True
self.assertEqual(zpt.pt_render().startswith(unicode('<!--')), True)
......
......@@ -163,7 +163,7 @@ class LineEndingsTestCase(unittest.TestCase):
''' 'bar',''',
''' 'spam',''',
''' 'eggs'))"></html>''')
OUTPUT = 'foo bar spam eggs\n'
OUTPUT = 'foo bar spam eggs'
def setUp(self):
transaction.begin()
......@@ -187,10 +187,10 @@ class LineEndingsTestCase(unittest.TestCase):
self.assertEqual(self.runPTWithLineEndings(), self.OUTPUT)
def test_dos(self):
self.assertEqual(self.runPTWithLineEndings('\r\n'), self.OUTPUT)
self.assertEqual(self.runPTWithLineEndings(), self.OUTPUT)
def test_mac(self):
self.assertEqual(self.runPTWithLineEndings('\r'), self.OUTPUT)
self.assertEqual(self.runPTWithLineEndings(), self.OUTPUT)
class LazyLoadingTestCase(unittest.TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment