MCPcopy Index your code
hub / github.com/ipython/ipython / test_link_twice

Method test_link_twice

tests/test_path.py:518–525  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 self.assert_content_equal(self.src, dst)
517
518 def test_link_twice(self):
519 # Linking the same file twice shouldn't leave duplicates around.
520 # See https://github.com/ipython/ipython/issues/6450
521 dst = self.dst("target")
522 path.link_or_copy(self.src, dst)
523 path.link_or_copy(self.src, dst)
524 self.assert_inode_equal(self.src, dst)
525 assert sorted(os.listdir(self.tempdir.name)) == ["src", "target"]

Callers

nothing calls this directly

Calls 2

dstMethod · 0.95
assert_inode_equalMethod · 0.95

Tested by

no test coverage detected