[Zodb-checkins] CVS: Zope3/lib/python/Interface/tests - testInterface.py:1.7
Barry Warsaw
barry@wooz.org
Fri, 20 Dec 2002 14:35:11 -0500
Update of /cvs-repository/Zope3/lib/python/Interface/tests
In directory cvs.zope.org:/tmp/cvs-serv11652/lib/python/Interface/tests
Modified Files:
testInterface.py
Log Message:
test module cleanups:
- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups
=== Zope3/lib/python/Interface/tests/testInterface.py 1.6 => 1.7 ===
--- Zope3/lib/python/Interface/tests/testInterface.py:1.6 Mon Jul 1 14:11:59 2002
+++ Zope3/lib/python/Interface/tests/testInterface.py Fri Dec 20 14:34:40 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
@@ -31,7 +31,7 @@
def testClassImplements(self):
assert IC.isImplementedByInstancesOf(C)
-
+
assert I1.isImplementedByInstancesOf(A)
assert I1.isImplementedByInstancesOf(B)
assert not I1.isImplementedByInstancesOf(C)
@@ -62,7 +62,7 @@
def testObjectImplements(self):
assert IC.isImplementedBy(C())
-
+
assert I1.isImplementedBy(A())
assert I1.isImplementedBy(B())
assert not I1.isImplementedBy(C())
@@ -137,16 +137,14 @@
def testFunctionAttributes(self):
- """Make sure function attributes become tagged values.
- """
-
+ # Make sure function attributes become tagged values.
meth = _I1['f12']
self.assertEqual(meth.getTaggedValue('optional'), 1)
class _I1(Interface):
a1 = Attribute("This is an attribute")
-
+
def f11(): pass
def f12(): pass
f12.optional = 1
@@ -158,7 +156,7 @@
def f21(): pass
def f22(): pass
f23 = f22
-
+
def test_suite():
return unittest.makeSuite(InterfaceTests)