[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_auth.py:1.4

R. David Murray bitz@bitdance.com
Fri, 27 Dec 2002 13:41:21 -0500


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv8206

Modified Files:
	test_auth.py 
Log Message:
Activate IContainer tests now that they have been refactored.


=== Zope3/src/zope/app/services/tests/test_auth.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/tests/test_auth.py:1.3	Thu Dec 26 18:21:47 2002
+++ Zope3/src/zope/app/services/tests/test_auth.py	Fri Dec 27 13:41:21 2002
@@ -108,16 +108,18 @@
 
 class TestAuthAsIContainer(BaseTestIContainer, TestCase):
 
-    def _Test__new(self):
+    def makeTestObject(self):
         return AuthenticationService()
 
+    def makeTestData(self):
+        return [ (k, User(k, k+'title', k+'desc', k, k+'pass'))
+                    for k in 'abcdefghijkl' ]
+
 
 def test_suite():
     t1 = makeSuite(AuthServiceTest)
-    #XXX Need to fix IContainer to get the object list from subclass
-    #t2 = makeSuite(TestAuthAsIContainer)
-    #return TestSuite((t1, t2))
-    return TestSuite((t1,))
+    t2 = makeSuite(TestAuthAsIContainer)
+    return TestSuite((t1, t2))
 
 if __name__=='__main__':
     main(defaultTest='test_suite')