Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def beforeTearDown
def test_marshall_roundtrip

Public Attributes

 qi
 tool
 infile
 obj

Detailed Description

Definition at line 49 of file test_marshall.py.


Member Function Documentation

Definition at line 51 of file test_marshall.py.

00051 
00052     def afterSetUp(self):
00053         super(MarshallerTest, self).afterSetUp()
00054         self.loginPortalOwner()
00055         self.qi = self.portal.portal_quickinstaller
00056         self.qi.installProduct('Marshall')
00057         self.tool = getToolByName(self.portal, tool_id)
00058         self.infile = open(self.input, 'rb+')
00059         self.portal.invokeFactory(self.type_name, self.type_name.lower())
00060         self.obj = self.portal._getOb(self.type_name.lower())

Here is the call graph for this function:

Definition at line 61 of file test_marshall.py.

00061 
00062     def beforeTearDown(self):
00063         super(MarshallerTest, self).beforeTearDown()
00064         self.infile.close()

Definition at line 65 of file test_marshall.py.

00065 
00066     def test_marshall_roundtrip(self):
00067         marshaller = getComponent(self.prefix)
00068         content = self.infile.read()
00069         marshaller.demarshall(self.obj, content)
00070         ctype, length, got = marshaller.marshall(self.obj, filename=self.input)
00071         normalize = self.input.endswith('xml')
00072         
00073         self.assertEqualsDiff(content, got, normalize=normalize)

Here is the call graph for this function:


Member Data Documentation

Definition at line 57 of file test_marshall.py.

Definition at line 59 of file test_marshall.py.

Definition at line 54 of file test_marshall.py.

Definition at line 56 of file test_marshall.py.


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