()
| 402 | |
| 403 | |
| 404 | def test_bestrelpath() -> None: |
| 405 | curdir = Path("/foo/bar/baz/path") |
| 406 | assert bestrelpath(curdir, curdir) == "." |
| 407 | assert bestrelpath(curdir, curdir / "hello" / "world") == "hello" + os.sep + "world" |
| 408 | assert bestrelpath(curdir, curdir.parent / "sister") == ".." + os.sep + "sister" |
| 409 | assert bestrelpath(curdir, curdir.parent) == ".." |
| 410 | assert bestrelpath(curdir, Path("hello")) == "hello" |
| 411 | |
| 412 | |
| 413 | def test_commonpath() -> None: |
nothing calls this directly
no test coverage detected