[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts/tests - testPythonScript.py:1.12
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:25:40 -0400
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts/tests
In directory cvs.zope.org:/tmp/cvs-serv27658/PythonScripts/tests
Modified Files:
testPythonScript.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py 1.11 => 1.12 ===
--- Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py:1.11 Wed Jun 12 16:39:18 2002
+++ Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py Wed Aug 14 18:25:09 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
import os, sys, unittest
@@ -74,9 +74,9 @@
assert txt == 'txt', txt
def testParam2(self):
- one, two = self._newPS('##parameters=x,y\nreturn x,y')('one','two')
- assert one == 'one'
- assert two == 'two'
+ one, two = self._newPS('##parameters=x,y\nreturn x,y')('one','two')
+ assert one == 'one'
+ assert two == 'two'
def testParam26(self):
import string
@@ -85,7 +85,7 @@
tup = apply(self._newPS('##parameters=%s\nreturn %s'
% (sparams,sparams)), params)
assert tup == tuple(params), (tup, params)
-
+
def testArithmetic(self):
one = self._newPS('return 1 * 5 + 4 / 2 - 6')()
assert one == 1, one
@@ -103,7 +103,7 @@
def testForLoop(self):
ten = self._newPS(readf('for_loop'))()
assert ten == 10
-
+
def testMutateLiterals(self):
l, d = self._newPS(readf('mutate_literals'))()
assert l == [2], l
@@ -122,7 +122,7 @@
a,b = self._newPS(readf('try_except'))()
assert a==1
assert b==1
-
+
def testBigBoolean(self):
true = self._newPS(readf('big_boolean'))()
assert true, true
@@ -166,4 +166,3 @@
if __name__ == '__main__':
main()
-