コード例 #1
0
ファイル: tests.py プロジェクト: khink/plone.app.upgrade
 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')