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

Method test_cmdline_copy

Lib/test/test_zipapp.py:409–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

407 self.assertTrue(target.is_file())
408
409 def test_cmdline_copy(self):
410 # Test copying an archive.
411 original = self.make_archive()
412 target = self.tmpdir / 'target.pyz'
413 args = [str(original), '-o', str(target)]
414 zipapp.main(args)
415 self.assertTrue(target.is_file())
416
417 def test_cmdline_copy_inplace(self):
418 # Test copying an archive in place fails.

Callers

nothing calls this directly

Calls 5

make_archiveMethod · 0.95
strFunction · 0.85
assertTrueMethod · 0.80
mainMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected