Changeset 7233 for main/waeup.sirp/trunk/src/waeup/sirp/tests
- Timestamp:
- 28 Nov 2011, 21:04:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/tests/test_authentication.py
r7194 r7233 24 24 from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer 25 25 from waeup.sirp.authentication import ( 26 UserAuthenticatorPlugin, Account, PrincipalInfo, get_principal_role_manager)26 UserAuthenticatorPlugin, Account, SIRPPrincipalInfo, get_principal_role_manager) 27 27 28 28 class FakeSite(grok.Site, grok.Container): … … 63 63 result2 = plugin.authenticateCredentials( 64 64 dict(login='bob', password='nonsense')) 65 self.assertTrue(isinstance(result1, PrincipalInfo))65 self.assertTrue(isinstance(result1, SIRPPrincipalInfo)) 66 66 self.assertTrue(result2 is None) 67 67 return … … 72 72 result1 = plugin.principalInfo('bob') 73 73 result2 = plugin.principalInfo('manfred') 74 self.assertTrue(isinstance(result1, PrincipalInfo))74 self.assertTrue(isinstance(result1, SIRPPrincipalInfo)) 75 75 self.assertTrue(result2 is None) 76 76 return
Note: See TracChangeset for help on using the changeset viewer.