Back to index

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

List of all members.

Public Member Functions

def test_unchanged
def test_changed

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 118 of file test_cookieauth.py.


Member Function Documentation

Definition at line 136 of file test_cookieauth.py.

00136 
00137     def test_changed(self):
00138         from Products.CMFCore.exportimport.cookieauth \
00139                 import exportCookieCrumbler
00140 
00141         site = self._initSite(use_changed=True)
00142         context = DummyExportContext(site)
00143         exportCookieCrumbler(context)
00144 
00145         self.assertEqual(len(context._wrote), 1)
00146         filename, text, content_type = context._wrote[0]
00147         self.assertEqual(filename, 'cookieauth.xml')
00148         self._compareDOM(text, _CHANGED_EXPORT)
00149         self.assertEqual(content_type, 'text/xml')
00150 

Here is the call graph for this function:

Definition at line 122 of file test_cookieauth.py.

00122 
00123     def test_unchanged(self):
00124         from Products.CMFCore.exportimport.cookieauth \
00125                 import exportCookieCrumbler
00126 
00127         site = self._initSite(use_changed=False)
00128         context = DummyExportContext(site)
00129         exportCookieCrumbler(context)
00130 
00131         self.assertEqual(len(context._wrote), 1)
00132         filename, text, content_type = context._wrote[0]
00133         self.assertEqual(filename, 'cookieauth.xml')
00134         self._compareDOM(text, _DEFAULT_EXPORT)
00135         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:


Member Data Documentation

Definition at line 120 of file test_cookieauth.py.


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