Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
test.test_tarfile.LinkEmulationTest Class Reference
Inheritance diagram for test.test_tarfile.LinkEmulationTest:
Inheritance graph
[legend]
Collaboration diagram for test.test_tarfile.LinkEmulationTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_hardlink_extraction1
def test_hardlink_extraction2
def test_symlink_extraction1
def test_symlink_extraction2
def setUp
def tearDown

Public Attributes

 tar

Static Public Attributes

 tarname = tarname
string mode = "r:"

Private Member Functions

def _test_link_extraction

Detailed Description

Definition at line 1648 of file test_tarfile.py.


Member Function Documentation

def test.test_tarfile.LinkEmulationTest._test_link_extraction (   self,
  name 
) [private]

Definition at line 1653 of file test_tarfile.py.

01653 
01654     def _test_link_extraction(self, name):
01655         self.tar.extract(name, TEMPDIR)
01656         data = open(os.path.join(TEMPDIR, name), "rb").read()
01657         self.assertEqual(md5sum(data), md5_regtype)

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_tarfile.ReadTest.setUp (   self) [inherited]

Definition at line 43 of file test_tarfile.py.

00043 
00044     def setUp(self):
00045         self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")

Here is the caller graph for this function:

def test.test_tarfile.ReadTest.tearDown (   self) [inherited]

Definition at line 46 of file test_tarfile.py.

00046 
00047     def tearDown(self):
00048         self.tar.close()
00049 

Here is the caller graph for this function:

Definition at line 1663 of file test_tarfile.py.

01663 
01664     def test_hardlink_extraction1(self):
01665         self._test_link_extraction("ustar/lnktype")

Here is the call graph for this function:

Definition at line 1668 of file test_tarfile.py.

01668 
01669     def test_hardlink_extraction2(self):
01670         self._test_link_extraction("./ustar/linktest2/lnktype")

Here is the call graph for this function:

Definition at line 1673 of file test_tarfile.py.

01673 
01674     def test_symlink_extraction1(self):
01675         self._test_link_extraction("ustar/symtype")

Here is the call graph for this function:

Definition at line 1678 of file test_tarfile.py.

01678 
01679     def test_symlink_extraction2(self):
01680         self._test_link_extraction("./ustar/linktest2/symtype")
01681 

Here is the call graph for this function:


Member Data Documentation

string test.test_tarfile.ReadTest.mode = "r:" [static, inherited]

Reimplemented in test.test_tarfile.MemberReadTest.

Definition at line 44 of file test_tarfile.py.


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