[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests - testUser.py:1.2

Stephan Richter srichter@cbu.edu
Sat, 13 Jul 2002 14:26:27 -0400


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

Modified Files:
	testUser.py 
Log Message:
Yes, I forgot the configure.zcml.

I also added Role support now. While it uses the global registry right now,
I am already working on a IAnnotations version. I will check that in soon.


=== Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests/testUser.py 1.1 => 1.2 ===
         user = self._user
         self.assertEqual('srichter', user.getLogin())
         
+    def testGetRoles(self):
+        user = self._user
+        self.assertEqual([], user.getRoles())
+
     def testValidate(self):
         user = self._user
         self.assertEqual(1, user.validate('hello'))
@@ -60,6 +64,10 @@
         user = self._user
         user.setLogin('srichter2')
         self.assertEqual('srichter', user.getLogin())
+
+    def testSetRoles(self):
+        # XXX Needs a test
+        user = self._user
 
     def testSetPassword(self):
         user = self._user