[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py added test for manage_FTPget()

Andreas Jung andreas at andreas-jung.com
Wed Jan 24 06:31:54 EST 2007


Log message for revision 72210:
  added test for manage_FTPget()
  

Changed:
  U   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

-=-
Modified: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===================================================================
--- Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2007-01-24 11:27:35 UTC (rev 72209)
+++ Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2007-01-24 11:31:53 UTC (rev 72210)
@@ -57,6 +57,14 @@
         pt = self.app.pt1
         self.assertEqual(pt.document_src(), self.text)
 
+    def testFTPGet(self):
+        # check for bug #2269
+        request = self.app.REQUEST
+        text = '<span tal:content="string:foobar"></span>'
+        self._addPT('pt1', text=text, REQUEST=request)
+        result = self.app.pt1.manage_FTPget()
+        self.assertEqual(result, text)
+
         
 class DummyFileUpload:
 



More information about the Zope-Checkins mailing list