[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Annotation/tests - Annotations.py:1.3

Barry Warsaw barry@wooz.org
Fri, 20 Dec 2002 15:22:41 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Annotation/tests
In directory cvs.zope.org:/tmp/cvs-serv18378/lib/python/Zope/App/OFS/Annotation/tests

Modified Files:
	Annotations.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/Annotation/tests/Annotations.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Annotation/tests/Annotations.py:1.2	Mon Jun 10 19:27:51 2002
+++ Zope3/lib/python/Zope/App/OFS/Annotation/tests/Annotations.py	Fri Dec 20 15:22:06 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.
-# 
+#
 ##############################################################################
 """
 
@@ -33,28 +33,28 @@
         verifyObject(IAnnotations, self.annotations)
 
     def testStorage(self):
-        """test __getitem__"""
+        # test __getitem__
         self.annotations['unittest'] = self.obj
         res = self.annotations['unittest']
         self.failUnlessEqual(self.obj, res)
 
     def testGetitemException(self):
-        """test __getitem__ raises exception on unknown key"""
+        # test __getitem__ raises exception on unknown key
         self.assertRaises(KeyError, self.annotations.__getitem__,'randomkey')
 
     def testGet(self):
-        """test get"""
+        # test get
         self.annotations['unittest'] = obj
         res = self.annotations.get('unittest')
         self.failUnlessEqual(obj, res)
 
     def testGet(self):
-        """test get with no set"""
+        # test get with no set
         res = self.annotations.get('randomkey')
         self.failUnlessEqual(None, res)
 
     def testGetDefault(self):
-        """test get returns default"""
+        # test get returns default
         res = self.annotations.get('randomkey', 'default')
         self.failUnlessEqual('default', res)