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

Method test_create_taropen

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

Source from the content-addressed store, hash-verified

2059 self.assertIn('spameggs42', names[0])
2060
2061 def test_create_taropen(self):
2062 with self.taropen(tmpname, "x") as tobj:
2063 tobj.add(self.file_path)
2064
2065 with self.taropen(tmpname) as tobj:
2066 names = tobj.getnames()
2067 self.assertEqual(len(names), 1)
2068 self.assertIn('spameggs42', names[0])
2069
2070 def test_create_existing_taropen(self):
2071 with self.taropen(tmpname, "x") as tobj:

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected