예제 #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')
예제 #2
0
파일: tests.py 프로젝트: Vinsurya/Plone
 def testSetLoginFormNoCookieAuth(self):
     # Shouldn't error
     uf = self.portal.acl_users
     uf._delOb('credentials_cookie_auth')
     setLoginFormInCookieAuth(self.portal)
예제 #3
0
파일: tests.py 프로젝트: Vinsurya/Plone
 def testSetLoginFormInCookieAuth(self):
     setLoginFormInCookieAuth(self.portal)
     cookie_auth = self.portal.acl_users.credentials_cookie_auth
     self.assertEqual(cookie_auth.getProperty('login_path'),
                          'require_login')
예제 #4
0
파일: tests.py 프로젝트: kkdhanesh/NBADEMO
 def testSetLoginFormNoCookieAuth(self):
     # Shouldn't error
     uf = self.portal.acl_users
     uf._delOb('credentials_cookie_auth')
     setLoginFormInCookieAuth(self.portal)
예제 #5
0
파일: tests.py 프로젝트: kkdhanesh/NBADEMO
 def testSetLoginFormInCookieAuth(self):
     setLoginFormInCookieAuth(self.portal)
     cookie_auth = self.portal.acl_users.credentials_cookie_auth
     self.assertEqual(cookie_auth.getProperty('login_path'),
                          'require_login')