micropython-lib/os.path/test_path.py

16 wiersze
384 B
Python

from os.path import *
assert split("") == ("", "")
assert split("path") == ("", "path")
assert split("/") == ("/", "")
assert split("/foo") == ("/", "foo")
assert split("/foo/") == ("/foo", "")
assert split("/foo/bar") == ("/foo", "bar")
assert exists("test_path.py")
assert not exists("test_path.py--")
assert isdir("os")
assert not isdir("os--")
assert not isdir("test_path.py")