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')
def testSetLoginFormNoCookieAuth(self): # Shouldn't error uf = self.portal.acl_users uf._delOb('credentials_cookie_auth') setLoginFormInCookieAuth(self.portal)
def testSetLoginFormInCookieAuth(self): setLoginFormInCookieAuth(self.portal) cookie_auth = self.portal.acl_users.credentials_cookie_auth self.assertEqual(cookie_auth.getProperty('login_path'), 'require_login')