[Zope-Checkins] CVS: Zope/lib/python/StructuredText/tests - testStructuredText.py:1.8

Andreas Jung andreas@zope.com
Wed, 17 Oct 2001 15:15:49 -0400


Update of /cvs-repository/Zope/lib/python/StructuredText/tests
In directory cvs.zope.org:/tmp/cvs-serv20545/tests

Modified Files:
	testStructuredText.py 
Log Message:
added test and fix to protect __literal__ to be changed by STXNG
underline code (patch by Sean Bowman)


=== Zope/lib/python/StructuredText/tests/testStructuredText.py 1.7 => 1.8 ===
                    '<a href="index_html">index_html</a>')
 
+    
+    def testUnderscoresInLiteral(self):
+        """ underscores in literals shouldn't do unterlining """
+
+        self._test("this is '__a_literal__' eh",
+                   "<code>__a_literal__</code>")
+
 
 def test_suite():
     return unittest.TestSuite( (