[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTML.py:1.14 testDTMLUnicode.py:1.3 testustr.py:1.3
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:29:54 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv29098/DocumentTemplate/tests
Modified Files:
testDTML.py testDTMLUnicode.py testustr.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/DocumentTemplate/tests/testDTML.py 1.13 => 1.14 ===
--- Zope/lib/python/DocumentTemplate/tests/testDTML.py:1.13 Wed Aug 14 11:46:58 2002
+++ Zope/lib/python/DocumentTemplate/tests/testDTML.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
-#
+#
##############################################################################
"""Document Template Tests
"""
@@ -259,7 +259,7 @@
<dtml-var expr="'http%3A%2F%2Fwww.zope.org%3Fa%3Db+123'" fmt=url-unquote-plus>
"""
)
-
+
expected = (
"""
http://www.zope.org?a=b 123
@@ -277,7 +277,7 @@
<dtml-var expr="'http%3A%2F%2Fwww.zope.org%3Fa%3Db+123'" url_unquote_plus>
"""
)
-
+
expected = (
"""
http://www.zope.org?a=b 123
@@ -285,7 +285,7 @@
)
self.assertEqual(html1(), expected)
self.assertEqual(html2(), expected)
-
+
def test_fmt(self):
html=self.doc_class(
@@ -499,7 +499,7 @@
"""
result = self.doc_class(html)(xxx=xxx, data={})
assert result == expected, result
-
+
def testBasicStringIn(self):
data=(
d(name='jim', age=39),
@@ -522,7 +522,7 @@
"""
result = String(s)(data=data)
assert expected == result, result
-
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite( DTMLTests ) )
=== Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.py 1.2 => 1.3 ===
--- Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.py:1.2 Wed Mar 27 05:14:02 2002
+++ Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.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
-#
+#
##############################################################################
"""Document Template Tests
"""
=== Zope/lib/python/DocumentTemplate/tests/testustr.py 1.2 => 1.3 ===
--- Zope/lib/python/DocumentTemplate/tests/testustr.py:1.2 Wed Mar 27 05:14:02 2002
+++ Zope/lib/python/DocumentTemplate/tests/testustr.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
-#
+#
##############################################################################
"""Document Template Tests
"""