Back to index

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

List of all members.

Public Member Functions

def test_unchanged
def test_normal

Static Public Attributes

 layer = ExportImportZCMLLayer

Detailed Description

Definition at line 380 of file test_actions.py.


Member Function Documentation

Definition at line 398 of file test_actions.py.

00398 
00399     def test_normal(self):
00400         from Products.CMFCore.exportimport.actions \
00401                 import exportActionProviders
00402 
00403         site = self._initSite()
00404         context = DummyExportContext(site)
00405         exportActionProviders(context)
00406 
00407         self.assertEqual(len(context._wrote), 1)
00408         filename, text, content_type = context._wrote[0]
00409         self.assertEqual(filename, 'actions.xml')
00410         self._compareDOM(text, _NORMAL_EXPORT)
00411         self.assertEqual(content_type, 'text/xml')
00412 

Here is the call graph for this function:

Definition at line 384 of file test_actions.py.

00384 
00385     def test_unchanged(self):
00386         from Products.CMFCore.exportimport.actions \
00387                 import exportActionProviders
00388 
00389         site = self._initSite(0, 0)
00390         context = DummyExportContext(site)
00391         exportActionProviders(context)
00392 
00393         self.assertEqual(len(context._wrote), 1)
00394         filename, text, content_type = context._wrote[0]
00395         self.assertEqual(filename, 'actions.xml')
00396         self._compareDOM(text, _EMPTY_EXPORT)
00397         self.assertEqual(content_type, 'text/xml')

Here is the call graph for this function:


Member Data Documentation

Definition at line 382 of file test_actions.py.


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