Beispiel #1
0
 def testSetLoginFormAlreadyChanged(self):
     # Shouldn't change the value if it's not the default
     cookie_auth = self.portal.acl_users.credentials_cookie_auth
     cookie_auth.manage_changeProperties(login_path='foo')
     setLoginFormInCookieAuth(self.portal)
     self.failIfEqual(cookie_auth.getProperty('login_path'),
                      'require_login')
Beispiel #2
0
 def testSetLoginFormNoCookieAuth(self):
     # Shouldn't error
     uf = self.portal.acl_users
     uf._delOb('credentials_cookie_auth')
     setLoginFormInCookieAuth(self.portal)
Beispiel #3
0
 def testSetLoginFormInCookieAuth(self):
     setLoginFormInCookieAuth(self.portal)
     cookie_auth = self.portal.acl_users.credentials_cookie_auth
     self.assertEqual(cookie_auth.getProperty('login_path'),
                          'require_login')
Beispiel #4
0
 def testSetLoginFormNoCookieAuth(self):
     # Shouldn't error
     uf = self.portal.acl_users
     uf._delOb('credentials_cookie_auth')
     setLoginFormInCookieAuth(self.portal)
Beispiel #5
0
 def testSetLoginFormInCookieAuth(self):
     setLoginFormInCookieAuth(self.portal)
     cookie_auth = self.portal.acl_users.credentials_cookie_auth
     self.assertEqual(cookie_auth.getProperty('login_path'),
                          'require_login')