[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Introspector/tests - testIntrospector.py:1.5

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


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

Modified Files:
	testIntrospector.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/Introspector/tests/testIntrospector.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/OFS/Introspector/tests/testIntrospector.py:1.4	Thu Dec 19 13:25:37 2002
+++ Zope3/lib/python/Zope/App/OFS/Introspector/tests/testIntrospector.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.
-# 
+#
 ##############################################################################
 """
 
@@ -23,22 +23,21 @@
 from Zope.App.OFS.Introspector.Introspector import Introspector
 from TestClass import TestClass, ITestClass, BaseTestClass, I, I2, I3
 
+
 class Test(CleanUp, TestCase):
-    """Test Introspector.
-    """
-   
+    """Test Introspector."""
+
     def testIntrospector(self):
-        """Testing introspector"""
-        
+        # Testing introspector
         ints = Introspector(ITestClass)
         self.assertEqual(ints.isInterface(), 1)
-        
+
         ints = Introspector(TestClass())
         self.assertEqual(ints.isInterface(), 0)
         request = {}
         ints.setRequest(request)
         self.assertEqual(ints.getClass(), 'TestClass')
-        
+
         ints = Introspector(TestClass)
         self.assertEqual(ints.isInterface(), 0)
         request['PATH_INFO'] = '++module++Zope.App.OFS.Introspector.tests.TestClass.TestClass'
@@ -88,12 +87,13 @@
                       (attr_name2, attr_desc2), ]
         details = [Iname, bases, desc, methods, attributes]
         self.assertEqual(ints.getInterfaceDetails(), details)
- 
 
-        
+
 def test_suite():
-    return TestSuite((makeSuite(Test),))
+    suite = TestSuite()
+    suite.addTest(makeSuite(Test))
+    return suite
+
 
-if __name__=='__main__':
+if __name__ == '__main__':
     main(defaultTest='test_suite')
-