[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/tests - testIContainer.py:1.6

Barry Warsaw barry@wooz.org
Fri, 20 Dec 2002 14:35:12 -0500


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

Modified Files:
	testIContainer.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/Container/tests/testIContainer.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Container/tests/testIContainer.py:1.5	Mon Nov 18 08:34:19 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/tests/testIContainer.py	Fri Dec 20 14:34:42 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.
-# 
+#
 ##############################################################################
 """
 
@@ -42,24 +42,24 @@
         verifyObject(IContainer, self._Test__new())
 
     def test_keys(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         data = container.keys()
         self.assertEqual(list(data), [])
-        
+
         container = self.__setUp()
         data = container.keys()
         # convert to sorted list
         data = list(data)
         data.sort()
         self.assertEqual(data, map(str, range(10)))
-        
+
     def test_get(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         self.assertRaises(KeyError, container.__getitem__, '1')
         self.assertEqual(container.get('1', '99'), '99')
-        
+
         container = self.__setUp()
         self.assertRaises(KeyError, container.__getitem__, '100')
         self.assertEqual(container.get('100', '99'), '99')
@@ -67,32 +67,32 @@
         self.assertEqual(container['7'], '8')
         self.assertEqual(container['0'], '4')
         self.assertEqual(container['9'], '9')
-        
+
     def test_values(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         data = container.values()
         self.assertEqual(list(data), [])
-        
+
         container = self.__setUp()
         data = container.values()
         data = list(data); data.sort() # convert to sorted list
         self.assertEqual(data, map(str, range(10)))
 
     def test_len(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         self.assertEqual(len(container), 0)
-        
+
         container = self.__setUp()
         self.assertEqual(len(container), 10)
 
     def test_items(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         data = container.items()
         self.assertEqual(list(data), [])
-        
+
         container = self.__setUp()
         data = container.items()
         # convert to sorted list
@@ -104,10 +104,10 @@
             ])
 
     def test___contains__(self):
-        '''See interface IReadContainer'''
+        # See interface IReadContainer
         container = self._Test__new()
         self.assertEqual(not not ('1' in container), 0)
-        
+
         container = self.__setUp()
         self.assertEqual(not not ('100' in container), 0)
         self.assertEqual(not not ('1' in container), 1)
@@ -115,10 +115,10 @@
         self.assertEqual(not not ('9' in container), 1)
 
     def test_delObject(self):
-        '''See interface IWriteContainer'''
+        # See interface IWriteContainer
         container = self._Test__new()
         self.assertRaises(KeyError, container.__delitem__, '1')
-        
+
         container = self.__setUp()
         self.assertRaises(KeyError, container.__delitem__, '100')
         del container['1']