Ignore:
Timestamp:
28 Nov 2011, 21:04:57 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement SIRPPrincipalInfo and SIRPPrincipal classes which provide ordinary principals with an extra email and phone attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/tests/test_authentication.py

    r7194 r7233  
    2424from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer
    2525from waeup.sirp.authentication import (
    26     UserAuthenticatorPlugin, Account, PrincipalInfo, get_principal_role_manager)
     26    UserAuthenticatorPlugin, Account, SIRPPrincipalInfo, get_principal_role_manager)
    2727
    2828class FakeSite(grok.Site, grok.Container):
     
    6363        result2 = plugin.authenticateCredentials(
    6464            dict(login='bob', password='nonsense'))
    65         self.assertTrue(isinstance(result1, PrincipalInfo))
     65        self.assertTrue(isinstance(result1, SIRPPrincipalInfo))
    6666        self.assertTrue(result2 is None)
    6767        return
     
    7272        result1 = plugin.principalInfo('bob')
    7373        result2 = plugin.principalInfo('manfred')
    74         self.assertTrue(isinstance(result1, PrincipalInfo))
     74        self.assertTrue(isinstance(result1, SIRPPrincipalInfo))
    7575        self.assertTrue(result2 is None)
    7676        return
Note: See TracChangeset for help on using the changeset viewer.