[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries/tests - test_principalregistry.py:1.3

R. David Murray bitz@bitdance.com
Fri, 27 Dec 2002 20:38:26 -0500


Update of /cvs-repository/Zope3/src/zope/app/security/registries/tests
In directory cvs.zope.org:/tmp/cvs-serv31660

Modified Files:
	test_principalregistry.py 
Log Message:
Test that basic principals have a getRoles method that returns and empty list.


=== Zope3/src/zope/app/security/registries/tests/test_principalregistry.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/registries/tests/test_principalregistry.py:1.2	Wed Dec 25 09:13:18 2002
+++ Zope3/src/zope/app/security/registries/tests/test_principalregistry.py	Fri Dec 27 20:38:25 2002
@@ -59,10 +59,12 @@
         self.assertEqual(p.getId(), '1')
         self.assertEqual(p.getTitle(), 'Tim Peters')
         self.assertEqual(p.getDescription(), 'Sir Tim Peters')
+        self.assertEqual(p.getRoles(), ())
         p = self.reg.getPrincipal('2')
         self.assertEqual(p.getId(), '2')
         self.assertEqual(p.getTitle(), 'Jim Fulton')
         self.assertEqual(p.getDescription(), 'Sir Jim Fulton')
+        self.assertEqual(p.getRoles(), ())
 
         self.assertEqual(len(self.reg.getPrincipals('')), 2)
 
@@ -137,6 +139,7 @@
         p = self.reg.getPrincipal("anybody")
         self.assertEquals(p.getId(), "anybody")
         self.assertEquals(p.getTitle(), "Default Principal")
+        self.assertEquals(p.getRoles(), ())
         self.assertRaises(DuplicateId, self.reg.definePrincipal,
                           "anybody", "title")