MCPcopy Index your code
hub / github.com/python/cpython / _test_fileobj_link

Method _test_fileobj_link

Lib/test/test_tarfile.py:229–232  ·  view source on GitHub ↗
(self, lnktype, regtype)

Source from the content-addressed store, hash-verified

227 # test link members each point to a regular member whose data is
228 # supposed to be exported.
229 def _test_fileobj_link(self, lnktype, regtype):
230 with self.tar.extractfile(lnktype) as a, \
231 self.tar.extractfile(regtype) as b:
232 self.assertEqual(a.name, b.name)
233
234 def test_fileobj_link1(self):
235 self._test_fileobj_link("ustar/lnktype", "ustar/regtype")

Callers 5

test_fileobj_link1Method · 0.95
test_fileobj_link2Method · 0.95
test_fileobj_symlink1Method · 0.95
test_fileobj_symlink2Method · 0.95
test_issue14160Method · 0.95

Calls 2

extractfileMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected