[Zope-Checkins] SVN: Zope/trunk/src/ Adjusted reStructuredText output to new docutils 0.5 version
Hanno Schlichting
plone at hannosch.info
Sun Feb 8 17:28:27 EST 2009
Log message for revision 96282:
Adjusted reStructuredText output to new docutils 0.5 version
Changed:
U Zope/trunk/src/Products/ZReST/tests/test_ZReST.py
U Zope/trunk/src/reStructuredText/tests/testReST.py
-=-
Modified: Zope/trunk/src/Products/ZReST/tests/test_ZReST.py
===================================================================
--- Zope/trunk/src/Products/ZReST/tests/test_ZReST.py 2009-02-08 22:27:49 UTC (rev 96281)
+++ Zope/trunk/src/Products/ZReST/tests/test_ZReST.py 2009-02-08 22:28:27 UTC (rev 96282)
@@ -68,11 +68,10 @@
resty.render()
html = resty.index_html()
- s = '<h1><a id="hello-world" name="hello-world">Hello World</a></h1>'
+ s = '<h1>Hello World</h1>'
self.assertEqual(s in html, True)
- s = '<h1><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">'\
- 'Von Vögeln und Öfen</a></h1>'
+ s = '<h1>Von Vögeln und Öfen</h1>'
self.assertEqual(s in html, True)
# ZReST should render a complete HTML document
Modified: Zope/trunk/src/reStructuredText/tests/testReST.py
===================================================================
--- Zope/trunk/src/reStructuredText/tests/testReST.py 2009-02-08 22:27:49 UTC (rev 96281)
+++ Zope/trunk/src/reStructuredText/tests/testReST.py 2009-02-08 22:28:27 UTC (rev 96282)
@@ -68,12 +68,10 @@
output_encoding=encoding,
initial_header_level=level)
- expected = '<h%d><a id="hello-world" name="hello-world">Hello World</a></h%d>' %\
- (level+1, level+1)
+ expected = '<h%d>Hello World</h%d>' % (level+1, level+1)
self.assertEqual(expected in html, True)
- expected = '<h%d><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">Von Vögeln und Öfen</a></h%d>' %\
- (level+1, level+1)
+ expected = '<h%d>Von Vögeln und Öfen</h%d>' % (level+1, level+1)
self.assertEqual(expected in html, True)
def testWithSingleSubtitle(self):
More information about the Zope-Checkins
mailing list