[Zope3-checkins] CVS: Zope3/src/zope/app/tests - placelesssetup.py:1.1.2.2 test_attributeannotations.py:1.1.2.2 test_dependable.py:1.1.2.2 test_introspector.py:1.1.2.5 test_standard_dates.py:1.1.2.3
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:53 -0500
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/tests
Modified Files:
Tag: NameGeddon-branch
placelesssetup.py test_attributeannotations.py
test_dependable.py test_introspector.py test_standard_dates.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/tests/placelesssetup.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/tests/placelesssetup.py:1.1.2.1 Mon Dec 23 14:32:32 2002
+++ Zope3/src/zope/app/tests/placelesssetup.py Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2002 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.
-#
+#
##############################################################################
"""Unit test logic for setting up and tearing down basic infrastructure
=== Zope3/src/zope/app/tests/test_attributeannotations.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/tests/test_attributeannotations.py:1.1.2.1 Mon Dec 23 14:32:32 2002
+++ Zope3/src/zope/app/tests/test_attributeannotations.py Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 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.
-#
+#
##############################################################################
"""
@@ -28,7 +28,7 @@
__implements__ = IAttributeAnnotatable
class Test(CleanUp, Annotations, TestCase):
-
+
def setUp(self):
self.annotations = AttributeAnnotations(Dummy())
#super(Test,self).setUp()
=== Zope3/src/zope/app/tests/test_dependable.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/tests/test_dependable.py:1.1.2.1 Mon Dec 23 14:32:32 2002
+++ Zope3/src/zope/app/tests/test_dependable.py Tue Dec 24 21:20:52 2002
@@ -26,7 +26,7 @@
class Test(PlacelessSetup, TestCase):
-
+
def _Test__new(self):
from zope.app.dependable import Dependable
return Dependable(AttributeAnnotations(C()))
@@ -50,7 +50,7 @@
dependents = list(dependable.dependents())
dependents.sort()
self.assertEqual(dependents, ['/a/b', '/c/e'])
-
+
def test_suite():
return TestSuite((
makeSuite(Test),
=== Zope3/src/zope/app/tests/test_introspector.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/src/zope/app/tests/test_introspector.py:1.1.2.4 Tue Dec 24 13:48:53 2002
+++ Zope3/src/zope/app/tests/test_introspector.py Tue Dec 24 21:20:52 2002
@@ -2,21 +2,21 @@
#
# Copyright (c) 2001, 2002 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.
-#
+#
##############################################################################
from zope.interface import Interface, Attribute
class ITestClass(Interface):
def drool():
"""...drool..."""
-
+
class BaseTestClass:
"""This is stupid base class"""
pass
@@ -26,19 +26,19 @@
__implements__ = ITestClass
def drool(self):
pass
-
+
class I(Interface):
"""bah blah"""
-
+
class I2(I):
"""eek"""
-
+
class I3(I, I2):
"""This is dummy doc string"""
-
+
testAttribute1 = Attribute("""This is a dummy attribute.""")
testAttribute2 = Attribute("""This is a dummy attribute.""")
-
+
def one(param):
"""method one"""
=== Zope3/src/zope/app/tests/test_standard_dates.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/tests/test_standard_dates.py:1.1.2.2 Mon Dec 23 16:06:00 2002
+++ Zope3/src/zope/app/tests/test_standard_dates.py Tue Dec 24 21:20:52 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 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 unittest