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
[legend]
Collaboration diagram for PortalTransforms.tests.test_graph.TestGraph:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testGraph
def testIdentity

Public Attributes

 engine

Detailed Description

Definition at line 8 of file test_graph.py.


Member Function Documentation

Definition at line 10 of file test_graph.py.

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

Definition at line 14 of file test_graph.py.

00014 
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 test_graph.py.

00020 
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))
00026 


Member Data Documentation

Definition at line 12 of file test_graph.py.


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