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

Method test_overwrite_dir_as_dir

Lib/test/archiver_tests.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.assertEqual(f.read(), b'newcontent')
34
35 def test_overwrite_dir_as_dir(self):
36 target = os.path.join(self.testdir, 'test')
37 os.mkdir(target)
38 with self.open(self.ar_with_dir) as ar:
39 self.extractall(ar)
40 self.assertTrue(os.path.isdir(target))
41
42 def test_overwrite_dir_as_implicit_dir(self):
43 target = os.path.join(self.testdir, 'test')

Callers

nothing calls this directly

Calls 6

openMethod · 0.95
extractallMethod · 0.95
assertTrueMethod · 0.80
joinMethod · 0.45
mkdirMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected