Example #1
0
def test_join_single_path():
    fs = FileSystem()
    assert fs.join("/fake") == "/fake"
Example #2
0
def test_join_many_paths():
    fs = FileSystem()
    assert fs.join("/fake", "/dir", "/other") == "/fake/dir/other"
Example #3
0
def test_current_directory_exists():
    fs = FileSystem()
    assert fs.exists(ROOT_DIR)
Example #4
0
def test_directory_not_exists():
    fs = FileSystem()
    assert not fs.exists('/fake/dir')
Example #5
0
def test_can_create_filesystem():
    fs = FileSystem()

    assert fs
    assert isinstance(fs, FileSystem)