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

Method test_add_twice

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

Source from the content-addressed store, hash-verified

2194 os_helper.unlink(self.bar)
2195
2196 def test_add_twice(self):
2197 # The same name will be added as a REGTYPE every
2198 # time regardless of st_nlink.
2199 tarinfo = self.tar.gettarinfo(self.foo)
2200 self.assertEqual(tarinfo.type, tarfile.REGTYPE,
2201 "add file as regular failed")
2202
2203 def test_add_hardlink(self):
2204 tarinfo = self.tar.gettarinfo(self.bar)

Callers

nothing calls this directly

Calls 2

gettarinfoMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected