Back to index

python3.2  3.2.2
Public Member Functions
test.test_marshal.HelperMixin Class Reference
Inheritance diagram for test.test_marshal.HelperMixin:
Inheritance graph

List of all members.

Public Member Functions

def helper

Detailed Description

Definition at line 9 of file

Member Function Documentation

def test.test_marshal.HelperMixin.helper (   self,

Definition at line 10 of file

00011     def helper(self, sample, *extra):
00012         new = marshal.loads(marshal.dumps(sample, *extra))
00013         self.assertEqual(sample, new)
00014         try:
00015             with open(support.TESTFN, "wb") as f:
00016                 marshal.dump(sample, f, *extra)
00017             with open(support.TESTFN, "rb") as f:
00018                 new = marshal.load(f)
00019             self.assertEqual(sample, new)
00020         finally:
00021             support.unlink(support.TESTFN)

Here is the call graph for this function:

Here is the caller graph for this function:

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