Back to index

moin  1.9.0~rc2
Classes | Public Member Functions | Public Attributes | Private Member Functions
test_marshal.TestMarshal Class Reference

List of all members.

Classes

class  Data

Public Member Functions

def setup_method
def testCreateMarshal
def testSetMarshalProperty

Public Attributes

 obj

Private Member Functions

def _canonize
def _checkData

Detailed Description

Testing Marshal used for ...XXX

Definition at line 13 of file test_marshal.py.


Member Function Documentation

def test_marshal.TestMarshal._canonize (   self,
  xml 
) [private]

Definition at line 47 of file test_marshal.py.

00047 
00048     def _canonize(self, xml):
00049         xml = xml.replace('\n', '')
00050         return xml

Here is the caller graph for this function:

def test_marshal.TestMarshal._checkData (   self,
  obj,
  xml 
) [private]

Definition at line 51 of file test_marshal.py.

00051 
00052     def _checkData(self, obj, xml):
00053         objXML = self._canonize(obj.toXML())
00054         expected = self._canonize(xml)
00055         assert objXML == expected
00056 

Here is the call graph for this function:

Here is the caller graph for this function:

def test_marshal.TestMarshal.setup_method (   self,
  method 
)

Definition at line 34 of file test_marshal.py.

00034 
00035     def setup_method(self, method):
00036         self.obj = marshal.Marshal()

wikixml.marshal: create new marshal

Definition at line 37 of file test_marshal.py.

00037 
00038     def testCreateMarshal(self):
00039         """wikixml.marshal: create new marshal"""
00040         self._checkData(self.obj, '<data></data>')

Here is the call graph for this function:

wikixml.marshal: setting marshal property

Definition at line 41 of file test_marshal.py.

00041 
00042     def testSetMarshalProperty(self):
00043         """wikixml.marshal: setting marshal property"""
00044         for value, xml in self.prop:
00045             self.obj.prop = value
00046             self._checkData(self.obj, xml)

Here is the call graph for this function:


Member Data Documentation

Definition at line 35 of file test_marshal.py.


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