[Zope-Checkins]
SVN: Zope/trunk/lib/python/reStructuredText/tests/testReST.py
cleanup and adjusted to changed html generation
Andreas Jung
andreas at andreas-jung.com
Mon Mar 13 09:33:08 EST 2006
Log message for revision 65950:
cleanup and adjusted to changed html generation
Changed:
U Zope/trunk/lib/python/reStructuredText/tests/testReST.py
-=-
Modified: Zope/trunk/lib/python/reStructuredText/tests/testReST.py
===================================================================
--- Zope/trunk/lib/python/reStructuredText/tests/testReST.py 2006-03-13 14:19:52 UTC (rev 65949)
+++ Zope/trunk/lib/python/reStructuredText/tests/testReST.py 2006-03-13 14:33:08 UTC (rev 65950)
@@ -57,12 +57,14 @@
html = HTML(txt, input_encoding=encoding,
output_encoding=encoding,
initial_header_level=level)
- self.assertEqual('<h%d><a name="hello-world">Hello World</a></h%d>'\
- % (level+1, level+1) in html,
- True)
- self.assertEqual('<h%d><a name="von-v-geln-und-fen">Von Vögeln und Öfen</a></h%d>'\
- % (level+1, level+1) in html,
- True)
+
+ expected = '<h%d><a id="hello-world" name="hello-world">Hello World</a></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)
+ self.assertEqual(expected in html, True)
def test_suite():
More information about the Zope-Checkins
mailing list