[Zope-Checkins] CVS: Packages/ZPublisher/tests - testTaintedString.py:1.2.66.1

Andreas Jung andreas at andreas-jung.com
Fri Sep 10 13:03:10 EDT 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	testTaintedString.py 
Log Message:
     - Collector #1477: TaintedString.strip() now implements the
       same signature as str.strip()


=== Packages/ZPublisher/tests/testTaintedString.py 1.2 => 1.2.66.1 ===
--- Packages/ZPublisher/tests/testTaintedString.py:1.2	Wed Aug 14 18:09:40 2002
+++ Packages/ZPublisher/tests/testTaintedString.py	Fri Sep 10 13:03:10 2004
@@ -90,6 +90,12 @@
             else:
                 self.failIf(isinstance(v, self._getClass()))
 
+        optArg = "lstrip rstrip strip".split()
+        for f in optArg:
+            v = getattr(tainted, f)(" ")
+            self.assertEquals(v, getattr(unquoted, f)(" "))
+            self.assert_(isinstance(v, self._getClass()))        
+
         justify = "center ljust rjust".split()
         for f in justify:
             v = getattr(tainted, f)(30)



More information about the Zope-Checkins mailing list