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

Method test_create_taropen

Lib/test/test_tarfile.py:2078–2085  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2076 self.assertIn('spameggs42', names[0])
2077
2078 def test_create_taropen(self):
2079 with self.taropen(tmpname, "x") as tobj:
2080 tobj.add(self.file_path)
2081
2082 with self.taropen(tmpname) as tobj:
2083 names = tobj.getnames()
2084 self.assertEqual(len(names), 1)
2085 self.assertIn('spameggs42', names[0])
2086
2087 def test_create_existing_taropen(self):
2088 with self.taropen(tmpname, "x") as tobj:

Callers

nothing calls this directly

Calls 5

taropenMethod · 0.80
getnamesMethod · 0.80
assertInMethod · 0.80
addMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected