Commit d0112f54 authored by Hanno Schlichting's avatar Hanno Schlichting

Adjusted reStructuredText output to new docutils 0.5 version

parent 94dc3d49
...@@ -68,11 +68,10 @@ class TestZReST(unittest.TestCase): ...@@ -68,11 +68,10 @@ class TestZReST(unittest.TestCase):
resty.render() resty.render()
html = resty.index_html() 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) self.assertEqual(s in html, True)
s = '<h1><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">'\ s = '<h1>Von Vgeln und fen</h1>'
'Von Vgeln und fen</a></h1>'
self.assertEqual(s in html, True) self.assertEqual(s in html, True)
# ZReST should render a complete HTML document # ZReST should render a complete HTML document
......
...@@ -68,12 +68,10 @@ class TestReST(unittest.TestCase): ...@@ -68,12 +68,10 @@ class TestReST(unittest.TestCase):
output_encoding=encoding, output_encoding=encoding,
initial_header_level=level) initial_header_level=level)
expected = '<h%d><a id="hello-world" name="hello-world">Hello World</a></h%d>' %\ expected = '<h%d>Hello World</h%d>' % (level+1, level+1)
(level+1, level+1)
self.assertEqual(expected in html, True) self.assertEqual(expected in html, True)
expected = '<h%d><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">Von Vgeln und fen</a></h%d>' %\ expected = '<h%d>Von Vgeln und fen</h%d>' % (level+1, level+1)
(level+1, level+1)
self.assertEqual(expected in html, True) self.assertEqual(expected in html, True)
def testWithSingleSubtitle(self): def testWithSingleSubtitle(self):
......
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