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

Stephan Richter srichter@cosmos.phy.tufts.edu
Mon, 28 Jul 2003 07:45:36 -0400


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

Modified Files:
	test_auth.py 
Log Message:
Made the IContainer tests much more general, since it assumed that the 
name it suggested for the object will be the name given, which is of 
course not the case all the time. The bug tracker for example always 
generates the id for you (except if you force it ;-).


=== Zope3/src/zope/app/services/tests/test_auth.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/services/tests/test_auth.py:1.17	Thu Jun  5 08:03:18 2003
+++ Zope3/src/zope/app/services/tests/test_auth.py	Mon Jul 28 07:45:31 2003
@@ -133,6 +133,12 @@
         return [ (k, User(k, k+'title', k+'desc', k, k+'pass'))
                     for k in 'abcdefghijkl' ]
 
+    def getUnknownKey(self):
+        return 'm'
+
+    def getBadKeyTypes(self):
+        return [None, ['foo'], 1, '\xf3abc']
+    
 
 def test_suite():
     t1 = makeSuite(AuthServiceTest)