[Zope-Checkins] CVS: Zope2 - testPythonScript.py:1.1.2.9
evan@serenade.digicool.com
evan@serenade.digicool.com
Thu, 8 Mar 2001 18:09:04 -0500
Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts/tests
In directory serenade:/slab/home/evan/Zope/psfix/lib/python/Products/PythonScripts/tests
Modified Files:
Tag: evan-script_fix-branch
testPythonScript.py
Log Message:
Fixed printing bug, added unit tests for the bug.
--- Updated File testPythonScript.py in package test --
--- testPythonScript.py 2001/02/24 00:08:44 1.1.2.8
+++ testPythonScript.py 2001/03/08 23:08:34 1.1.2.9
@@ -191,6 +191,14 @@
1346269, 2178309, 3524578, 5702887, 9227465, 14930352,
24157817, 39088169, 63245986], r
+ def testSimplePrint(self):
+ txt = self._newPS(readf('simple_print'))()
+ assert txt == 'a 1 []\n', txt
+
+ def testComplexPrint(self):
+ txt = self._newPS(readf('complex_print'))()
+ assert txt == 'double\ndouble\n x: 1\ny: 0 1 2\n\n', txt
+
test_classes = (TestPythonScriptNoAq,)
# unit test machinery
--- Updated File testPythonScript.py in package Zope2 --
--- testPythonScript.py 2001/02/24 00:08:44 1.1.2.8
+++ testPythonScript.py 2001/03/08 23:08:34 1.1.2.9
@@ -191,6 +191,14 @@
1346269, 2178309, 3524578, 5702887, 9227465, 14930352,
24157817, 39088169, 63245986], r
+ def testSimplePrint(self):
+ txt = self._newPS(readf('simple_print'))()
+ assert txt == 'a 1 []\n', txt
+
+ def testComplexPrint(self):
+ txt = self._newPS(readf('complex_print'))()
+ assert txt == 'double\ndouble\n x: 1\ny: 0 1 2\n\n', txt
+
test_classes = (TestPythonScriptNoAq,)
# unit test machinery