def test_getAccountRole(self): """ L{getAccountRole} returns a L{Role} in a given store for one of the account names passed to it. """ role = sharing.getAccountRole( self.store, [(u"username", u"domain.example.com")]) self.assertEquals(role.externalID, u"*****@*****.**")
def roleIn(self, userStore): """ Get the authenticated role for the user represented by this view in the given user store. """ return getAccountRole(userStore, self._accountNames)