[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/sequence/tests - testSequence.py:1.7 ztestlib.py:1.3
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:29:54 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/sequence/tests
In directory cvs.zope.org:/tmp/cvs-serv29098/DocumentTemplate/sequence/tests
Modified Files:
testSequence.py ztestlib.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/DocumentTemplate/sequence/tests/testSequence.py 1.6 => 1.7 ===
--- Zope/lib/python/DocumentTemplate/sequence/tests/testSequence.py:1.6 Wed Nov 28 10:50:56 2001
+++ Zope/lib/python/DocumentTemplate/sequence/tests/testSequence.py Wed Aug 14 18:29:53 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
@@ -30,7 +30,7 @@
def tearDown( self ):
"""
"""
-
+
def test1( self ):
"test1"
assert res1==SortEx(wordlist)
@@ -42,7 +42,7 @@
def test3( self ):
"test3"
assert res3==SortEx(wordlist, (("key", "cmp"),), mapping=1)
-
+
def test4( self ):
"test4"
assert res4==SortEx(wordlist, (("key", "cmp", "desc"),), mapping=1)
@@ -60,7 +60,7 @@
"test7"
def myCmp(s1, s2):
- return -cmp(s1, s2)
+ return -cmp(s1, s2)
# Create namespace...
from DocumentTemplate.DT_Util import TemplateDict
=== Zope/lib/python/DocumentTemplate/sequence/tests/ztestlib.py 1.2 => 1.3 ===
--- Zope/lib/python/DocumentTemplate/sequence/tests/ztestlib.py:1.2 Wed May 23 10:42:11 2001
+++ Zope/lib/python/DocumentTemplate/sequence/tests/ztestlib.py Wed Aug 14 18:29:53 2002
@@ -1,8 +1,6 @@
-
-
class standard_html: # Base class for using with ZTemplates
- def __init__(self, title):
- self.standard_html_header = """<HTML>
+ def __init__(self, title):
+ self.standard_html_header = """<HTML>
<HEAD>
<TITLE>
%s
@@ -11,25 +9,25 @@
<BODY>""" % title
- self.standard_html_footer = """</BODY>
+ self.standard_html_footer = """</BODY>
</HTML>"""
- self.title = title
+ self.title = title
def test(s):
- outfile = open("test.out", 'w')
- outfile.write(s)
- outfile.close()
+ outfile = open("test.out", 'w')
+ outfile.write(s)
+ outfile.close()
def exception():
- import sys, traceback
- exc_type, exc_value, exc_tb = sys.exc_info()
+ import sys, traceback
+ exc_type, exc_value, exc_tb = sys.exc_info()
- outfile = open("test.err", 'w')
- traceback.print_exception(exc_type, exc_value, exc_tb, None, outfile)
- outfile.close()
+ outfile = open("test.err", 'w')
+ traceback.print_exception(exc_type, exc_value, exc_tb, None, outfile)
+ outfile.close()
wordlist = [