[Zope3-checkins] CVS: Zope3/src/zope/app/demo/passwdauth - tests.py:1.2

Jeremy Hylton jeremy at zope.com
Wed Mar 3 11:08:27 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/demo/passwdauth
In directory cvs.zope.org:/tmp/cvs-serv5338

Modified Files:
	tests.py 
Log Message:
Simplify test_suite() function.


=== Zope3/src/zope/app/demo/passwdauth/tests.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/demo/passwdauth/tests.py:1.1	Fri Feb 27 09:50:24 2004
+++ Zope3/src/zope/app/demo/passwdauth/tests.py	Wed Mar  3 11:08:26 2004
@@ -18,7 +18,7 @@
 import os
 from zope.app.demo import passwdauth
 from zope.exceptions import NotFoundError
-from unittest import TestCase, TestSuite, main, makeSuite
+from unittest import TestCase, main, makeSuite
 
 class PasswdPrincipalSourceTest(TestCase):
 
@@ -43,9 +43,7 @@
         self.assertEqual(self.source.authenticate('foo', 'bar'), None)
     
 def test_suite():
-    return TestSuite((
-        makeSuite(PasswdPrincipalSourceTest),
-        ))
+    return makeSuite(PasswdPrincipalSourceTest)
     
 if __name__=='__main__':
     main(defaultTest='test_suite')




More information about the Zope3-Checkins mailing list