Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_zlib.ChecksumBigBufferTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_big_buffer

Public Attributes

 mapping

Detailed Description

Definition at line 67 of file test_zlib.py.


Member Function Documentation

Definition at line 69 of file test_zlib.py.

00069 
00070     def setUp(self):
00071         with open(support.TESTFN, "wb+") as f:
00072             f.seek(_4G)
00073             f.write(b"asdf")
00074             f.flush()
00075             self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)

Here is the caller graph for this function:

Definition at line 76 of file test_zlib.py.

00076 
00077     def tearDown(self):
00078         self.mapping.close()
00079         support.unlink(support.TESTFN)

Here is the caller graph for this function:

Definition at line 84 of file test_zlib.py.

00084 
00085     def test_big_buffer(self):
00086         self.assertEqual(zlib.crc32(self.mapping), 3058686908)
00087         self.assertEqual(zlib.adler32(self.mapping), 82837919)
00088 

Here is the call graph for this function:


Member Data Documentation

Definition at line 74 of file test_zlib.py.


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