Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.exportimport.tests.test_cookieauth.importCookieCrumblerTests Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_cookieauth.importCookieCrumblerTests:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_cookieauth.importCookieCrumblerTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_normal

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 151 of file test_cookieauth.py.


Member Function Documentation

Definition at line 155 of file test_cookieauth.py.

00155 
00156     def test_normal(self):
00157         from Products.CMFCore.exportimport.cookieauth \
00158                 import importCookieCrumbler
00159 
00160         site = self._initSite()
00161         cc = site.cookie_authentication
00162 
00163         context = DummyImportContext(site)
00164         context._files['cookieauth.xml'] = _CHANGED_EXPORT
00165         importCookieCrumbler(context)
00166 
00167         self.assertEqual( cc.auth_cookie, 'value1' )
00168         self.assertEqual( cc.cache_header_value, 'value2' )
00169         self.assertEqual( cc.name_cookie, 'value3' )
00170         self.assertEqual( cc.log_username, 0 )
00171         self.assertEqual( cc.persist_cookie, 'value4' )
00172         self.assertEqual( cc.pw_cookie, 'value5' )
00173         self.assertEqual( cc.local_cookie_path, 1 )
00174         self.assertEqual( cc.auto_login_page, 'value6' )
00175         self.assertEqual( cc.unauth_page, 'value7' )
00176         self.assertEqual( cc.logout_page, 'value8' )
00177 

Here is the call graph for this function:


Member Data Documentation

Definition at line 153 of file test_cookieauth.py.


The documentation for this class was generated from the following file: