Esempio n. 1
0
 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"*****@*****.**")
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)