MCPcopy Create free account
hub / github.com/ipython/ipython / test_link_twice

Method test_link_twice

IPython/utils/tests/test_path.py:485–492  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 self.assert_content_equal(self.src, dst)
484
485 def test_link_twice(self):
486 # Linking the same file twice shouldn't leave duplicates around.
487 # See https://github.com/ipython/ipython/issues/6450
488 dst = self.dst('target')
489 path.link_or_copy(self.src, dst)
490 path.link_or_copy(self.src, dst)
491 self.assert_inode_equal(self.src, dst)
492 nt.assert_equal(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