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

Method _test

Lib/test/test_tarfile.py:2579–2581  ·  view source on GitHub ↗
(self, names=["bar"], fileobj=None)

Source from the content-addressed store, hash-verified

2577 tar.addfile(tarfile.TarInfo("bar"))
2578
2579 def _test(self, names=["bar"], fileobj=None):
2580 with tarfile.open(self.tarname, fileobj=fileobj) as tar:
2581 self.assertEqual(tar.getnames(), names)
2582
2583 def test_non_existing(self):
2584 self._add_testfile()

Callers 5

test_non_existingMethod · 0.95
test_emptyMethod · 0.95
test_empty_fileobjMethod · 0.95
test_fileobjMethod · 0.95
test_existingMethod · 0.95

Calls 3

getnamesMethod · 0.80
openMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected