MCPcopy Index your code
hub / github.com/RustPython/RustPython / _test_fileobj_link

Method _test_fileobj_link

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

Source from the content-addressed store, hash-verified

229 # test link members each point to a regular member whose data is
230 # supposed to be exported.
231 def _test_fileobj_link(self, lnktype, regtype):
232 with self.tar.extractfile(lnktype) as a, \
233 self.tar.extractfile(regtype) as b:
234 self.assertEqual(a.name, b.name)
235
236 def test_fileobj_link1(self):
237 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