[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/PropertySets/tests - PropertySetDef.py:1.4
Barry Warsaw
barry@wooz.org
Fri, 20 Dec 2002 15:22:42 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/PropertySets/tests
In directory cvs.zope.org:/tmp/cvs-serv18378/lib/python/Zope/App/OFS/PropertySets/tests
Modified Files:
PropertySetDef.py
Log Message:
test module cleanups:
- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups
=== Zope3/lib/python/Zope/App/OFS/PropertySets/tests/PropertySetDef.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/PropertySets/tests/PropertySetDef.py:1.3 Tue Jul 16 18:54:03 2002
+++ Zope3/lib/python/Zope/App/OFS/PropertySets/tests/PropertySetDef.py Fri Dec 20 15:22:11 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.
-#
+#
##############################################################################
"""
@@ -21,11 +21,13 @@
from Zope.App.OFS.PropertySets.IPropertySetDef import IPropertySetDef
from Zope.Exceptions import DuplicationError
+
class Field:
pass
+
class PropertySetDefTest:
- "Test the IPropertySetDef interface"
+ """Test the IPropertySetDef interface"""
def setUp(self):
self.field1 = Field()
@@ -37,11 +39,11 @@
verifyObject(IPropertySetDef, self.psd)
def testStorage(self):
- """test __getitem__"""
+ # test __getitem__
self.failUnlessEqual(self.field1, self.psd.getField('test1'))
def testGetitemException(self):
- """test getField raises exception on unknown key"""
+ # test getField raises exception on unknown key
self.assertRaises(KeyError, self.psd.getField, 'randomkey')
def testHas_field(self):