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

Method make_test_file

Lib/test/test_zipfile/test_core.py:1632–1635  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1630class ExtractTests(unittest.TestCase):
1631
1632 def make_test_file(self):
1633 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1634 for fpath, fdata in SMALL_TEST_DATA:
1635 zipfp.writestr(fpath, fdata)
1636
1637 def test_extract(self):
1638 with temp_cwd():

Callers 4

test_extractMethod · 0.95
test_extract_allMethod · 0.95

Calls 1

writestrMethod · 0.80

Tested by

no test coverage detected