Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PortalTransforms.tests.test_graph.TestGraph Class Reference
Inheritance diagram for PortalTransforms.tests.test_graph.TestGraph:
Inheritance graph
Collaboration diagram for PortalTransforms.tests.test_graph.TestGraph:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testGraph
def testIdentity

Public Attributes


Detailed Description

Definition at line 8 of file

Member Function Documentation

Definition at line 10 of file

00011     def afterSetUp(self):
00012         ATSiteTestCase.afterSetUp(self)
00013         self.engine = self.portal.portal_transforms

Definition at line 14 of file

00015     def testGraph(self):
00016         ### XXX Local file and expected output
00017         data = open(FILE_PATH, 'r').read()
00018         out = self.engine.convertTo('text/plain', data, filename=FILE_PATH)
00019         assert(out.getData())

Definition at line 20 of file

00021     def testIdentity(self):
00022         orig = 'Some text'
00023         converted = self.engine.convertTo(
00024             'text/plain', 'Some text', mimetype='text/plain')
00025         self.assertEquals(orig, str(converted))

Member Data Documentation

Definition at line 12 of file

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