(self)
| 126 | class UstarReadTest(ReadTest, unittest.TestCase): |
| 127 | |
| 128 | def test_fileobj_regular_file(self): |
| 129 | tarinfo = self.tar.getmember("ustar/regtype") |
| 130 | with self.tar.extractfile(tarinfo) as fobj: |
| 131 | data = fobj.read() |
| 132 | self.assertEqual(len(data), tarinfo.size, |
| 133 | "regular file extraction failed") |
| 134 | self.assertEqual(sha256sum(data), sha256_regtype, |
| 135 | "regular file extraction failed") |
| 136 | |
| 137 | def test_fileobj_readlines(self): |
| 138 | self.tar.extract("ustar/regtype", TEMPDIR, filter='data') |
nothing calls this directly
no test coverage detected