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

Method make_test_file

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

Source from the content-addressed store, hash-verified

1613class ExtractTests(unittest.TestCase):
1614
1615 def make_test_file(self):
1616 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1617 for fpath, fdata in SMALL_TEST_DATA:
1618 zipfp.writestr(fpath, fdata)
1619
1620 def test_extract(self):
1621 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