Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluggableAuthService.tests.test_UserFolder.UserTests Class Reference
Inheritance diagram for PluggableAuthService.tests.test_UserFolder.UserTests:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.tests.test_UserFolder.UserTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testGetUserName
def testGetUserId
def testBaseUserGetIdEqualGetName
def NOTIMPLEMENTED_testGetPassword
def testGetRoles
def testGetDomains

Public Attributes

 uf
 user

Detailed Description

Definition at line 266 of file test_UserFolder.py.


Member Function Documentation

Definition at line 268 of file test_UserFolder.py.

00268 
00269     def afterSetUp(self):
00270         self.uf = self.folder.acl_users
00271         self.uf._doAddUser('chris', '123', ['Manager'], [])
00272         self.user = self.uf.getUser('chris')

Definition at line 287 of file test_UserFolder.py.

00287 
00288     def NOTIMPLEMENTED_testGetPassword(self):
00289         f = self.user
00290         self.assertEqual(f._getPassword(), '123')

Definition at line 281 of file test_UserFolder.py.

00281 
00282     def testBaseUserGetIdEqualGetName(self):
00283         # this is true for the default user type, but will not
00284         # always be true for extended user types going forward (post-2.6)
00285         f = self.user
00286         self.assertEqual(f.getId(), f.getUserName())

Definition at line 297 of file test_UserFolder.py.

00297 
00298     def testGetDomains(self):
00299         f = self.user
00300         self.assertEqual(f.getDomains(), ())
00301 

Definition at line 291 of file test_UserFolder.py.

00291 
00292     def testGetRoles(self):
00293         f = self.user
00294         # XXX: PAS returns roles as list
00295         #self.assertEqual(f.getRoles(), ('Manager', 'Authenticated'))
00296         self.assertEqual(f.getRoles(), ['Manager', 'Authenticated'])

Definition at line 277 of file test_UserFolder.py.

00277 
00278     def testGetUserId(self):
00279         f = self.user
00280         self.assertEqual(f.getId(), 'chris')

Definition at line 273 of file test_UserFolder.py.

00273 
00274     def testGetUserName(self):
00275         f = self.user
00276         self.assertEqual(f.getUserName(), 'chris')


Member Data Documentation

Definition at line 269 of file test_UserFolder.py.

Definition at line 271 of file test_UserFolder.py.


The documentation for this class was generated from the following file: