def test_join_single_path(): fs = FileSystem() assert fs.join("/fake") == "/fake"
def test_join_many_paths(): fs = FileSystem() assert fs.join("/fake", "/dir", "/other") == "/fake/dir/other"
def test_current_directory_exists(): fs = FileSystem() assert fs.exists(ROOT_DIR)
def test_directory_not_exists(): fs = FileSystem() assert not fs.exists('/fake/dir')
def test_can_create_filesystem(): fs = FileSystem() assert fs assert isinstance(fs, FileSystem)