Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Marshall.tests.test_export.ExportTest Class Reference
Inheritance diagram for Marshall.tests.test_export.ExportTest:
Inheritance graph
[legend]
Collaboration diagram for Marshall.tests.test_export.ExportTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_export

Public Attributes

 qi
 tool
 folder

Detailed Description

Definition at line 99 of file test_export.py.


Member Function Documentation

Definition at line 101 of file test_export.py.

00101 
00102     def afterSetUp(self):
00103         super(ExportTest, self).afterSetUp()
00104         self.loginPortalOwner()
00105         self.qi = self.portal.portal_quickinstaller
00106         self.qi.installProduct('Marshall')
00107         self.tool = getToolByName(self.portal, tool_id)

Here is the call graph for this function:

Definition at line 108 of file test_export.py.

00108 
00109     def test_export(self):
00110         self.portal.invokeFactory('Folder', 'test_data')
00111         self.folder = self.portal.test_data
00112         paths = fromFS(self.base, self.folder)
00113         paths.sort()
00114         obj_paths = filter(lambda x: '.metadata' not in x, paths)
00115         data = self.tool.export(self.folder, obj_paths)
00116         zipf = zipfile.ZipFile(data)
00117         self.assertEquals(zipf.testzip(), None)
00118         zipl = zipf.namelist()
00119         zipl.sort()
00120         self.assertEquals(zipl, paths)


Member Data Documentation

Definition at line 110 of file test_export.py.

Definition at line 104 of file test_export.py.

Definition at line 106 of file test_export.py.


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