Exemplo n.º 1
0
 def setUp(self):
     setUpPasswordManagers()
     self.reg = PrincipalRegistry()
     self.reg.definePrincipal('1', 'Tim Peters', 'Sir Tim Peters',
                              'tim', '123')
     self.reg.definePrincipal('2', 'Jim Fulton', 'Sir Jim Fulton',
                              'jim', '456')
 def setUp(self):
     setUpPasswordManagers()
     self.reg = PrincipalRegistry()
     # Passwords are provided in encoded form, which means they must be
     # bytes.
     self.reg.definePrincipal('1', 'Tim Peters', 'Sir Tim Peters',
                              'tim', b'123')
     self.reg.definePrincipal('2', 'Jim Fulton', 'Sir Jim Fulton',
                              'jim', b'456')
Exemplo n.º 3
0
    def setUp(self, doctesttest=None):
        CAPlacelessSetup.setUp(self)
        EventPlacelessSetup.setUp(self)
        ContainerPlacelessSetup.setUp(self)
        I18nPlacelessSetup.setUp(self)

        setUpPasswordManagers()
        ztapi.browserView(None, 'absolute_url', AbsoluteURL)
        ztapi.browserViewProviding(None, AbsoluteURL, IAbsoluteURL)

        from zope.security.testing import addCheckerPublic
        addCheckerPublic()

        from zope.security.management import newInteraction
        newInteraction()

        setVocabularyRegistry(None)
Exemplo n.º 4
0
def setUp(test=None):
    setUpComponent()
    setUpPasswordManagers()
Exemplo n.º 5
0
 def setUp(self):
     setUpPasswordManagers()
Exemplo n.º 6
0
def setUp(test):
    test.globs['root'] = siteSetUp(site=True)
    setUpPasswordManagers()