[Zope-Checkins] CVS: Packages/StructuredText/tests - testStructuredText.py:1.21.2.1

Andreas Jung andreas at andreas-jung.com
Sun Nov 28 04:40:10 EST 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	testStructuredText.py 
Log Message:

      - Collector #631: Image URLs in StructuredText containing port
        numbers were not rendered correctly


=== Packages/StructuredText/tests/testStructuredText.py 1.21 => 1.21.2.1 ===
--- Packages/StructuredText/tests/testStructuredText.py:1.21	Sun May 25 16:40:10 2003
+++ Packages/StructuredText/tests/testStructuredText.py	Sun Nov 28 04:40:10 2004
@@ -208,7 +208,13 @@
     def testLinkInLiteral(self):
         self._test("this is a '\"literal\":http://www.zope.org/.' eh",
         '<code>"literal":http://www.zope.org/.</code>')
+     
+    def testImgLink(self):
+        self._test('"foo":img:http://www.zope.org/bar.gif',
+                   '<img src="http://www.zope.org/bar.gif" alt="foo">')
 
+        self._test('"foo":img:http://www.zope.org:8080/bar.gif',
+                   '<img src="http://www.zope.org:8080/bar.gif" alt="foo">')
 
     def XXXtestUnicodeContent(self):
         # This fails because ST uses the default locale to get "letters"



More information about the Zope-Checkins mailing list