|
@@ -37,7 +37,14 @@ def test_relative(tmpdir):
|
|
assert os.path.lexists(link)
|
|
assert os.path.lexists(link)
|
|
assert os.readlink(link) == "../source"
|
|
assert os.readlink(link) == "../source"
|
|
|
|
|
|
-def test_link_exists(tmpdir):
|
|
|
|
|
|
+def test_suitable_link_exists(tmpdir):
|
|
|
|
+ os.chdir(tmpdir.strpath)
|
|
|
|
+ osex.symlink("source", "link")
|
|
|
|
+ assert os.path.lexists("link")
|
|
|
|
+ osex.symlink("source", "link")
|
|
|
|
+ osex.symlink("source", "link", override = False)
|
|
|
|
+
|
|
|
|
+def test_divergent_link_exists(tmpdir):
|
|
os.chdir(tmpdir.strpath)
|
|
os.chdir(tmpdir.strpath)
|
|
osex.symlink("source1", "link")
|
|
osex.symlink("source1", "link")
|
|
assert os.path.lexists("link")
|
|
assert os.path.lexists("link")
|