Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testMembraneGroupManager.py   Products.membrane(Download)
        self.failUnlessEqual(group.getGroupMembers(),
                             (mem_auth.getUserId(),))
        self.failUnlessEqual(mem_grps.getGroupsForPrincipal(mem_grps),
                             (group.getId(),))
        self.group.setMembers([member2.UID()])
        self.failUnlessEqual(sortTuple(group.getGroupMembers()),
                             sortTuple([mem2_auth.getUserId(),
                                        mem_auth.getUserId()]))
        self.failUnlessEqual(mem2_grps.getGroupsForPrincipal(mem2_grps),
        self.failUnlessEqual(group.getGroupMembers(),
                             (mem_auth.getUserId(),))
        self.failUnlessEqual(mem_grps.getGroupsForPrincipal(mem_grps),
                             (group.getId(),))
        self.group.setMembers([member2.UID()])
        self.failUnlessEqual(sortTuple(group.getGroupMembers()),
                             sortTuple([mem2_auth.getUserId(),
                                        mem_auth.getUserId()]))
        self.failUnlessEqual(
            mem2_grps.getGroupsForPrincipal(mem2_grps), (group.getId(),))