[Zope-Checkins] CVS: Zope2 - testPythonScript.py:1.4

shane@digicool.com shane@digicool.com
Fri, 27 Apr 2001 16:28:19 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts/tests
In directory korak:/tmp/cvs-serv17686/lib/python/Products/PythonScripts/tests

Modified Files:
	testPythonScript.py 
Log Message:
Merged RestrictedPythonBranch!



--- Updated File testPythonScript.py in package Zope2 --
--- testPythonScript.py	2001/04/11 15:35:47	1.3
+++ testPythonScript.py	2001/04/27 20:27:44	1.4
@@ -110,7 +110,7 @@
         ps = PythonScript('ps')
         ps.ZBindings_edit(bind or {})
         ps.write(txt)
-        ps._makeFunction(1)
+        ps._makeFunction()
         return ps
 
     def fail(self):
@@ -201,18 +201,17 @@
 
     def testComplexPrint(self):
         txt = self._newPS(readf('complex_print'))()
-        assert txt == 'double\ndouble\n x: 1\ny: 0 1 2\n\n', txt
+        assert txt == 'double\ndouble\nx: 1\ny: 0 1 2\n\n', txt
 
     def testNSBind(self):
         f = self._newPS(readf('ns_bind'), bind={'name_ns': '_'})
         bound = f.__render_with_namespace__({'yes': 1, 'no': self.fail})
         assert bound == 1, bound
 
-    def testManyArgs(self):
-        f = self._newPS(readf('manyargs'))
-        f()
-        ss = f._v_f.func_code.co_stacksize
-        assert ss == 24, ss
+    def testBooleanMap(self):
+        true = self._newPS(readf('boolean_map'))()
+        assert true
+
 
 test_classes = (TestPythonScriptNoAq,)