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

Method test_add_twice

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

Source from the content-addressed store, hash-verified

2177 os_helper.unlink(self.bar)
2178
2179 def test_add_twice(self):
2180 # The same name will be added as a REGTYPE every
2181 # time regardless of st_nlink.
2182 tarinfo = self.tar.gettarinfo(self.foo)
2183 self.assertEqual(tarinfo.type, tarfile.REGTYPE,
2184 "add file as regular failed")
2185
2186 def test_add_hardlink(self):
2187 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