コード例 #1
0
ファイル: test_utils.py プロジェクト: dexy/dexy
def test_split_path_with_root():
    path = "/foo/bar/baz"
    assert split_path(path) == ['', 'foo', 'bar', 'baz']
コード例 #2
0
ファイル: test_utils.py プロジェクト: dexy/dexy
def test_split_path():
    path = "foo/bar/baz"
    assert split_path(path) == ['foo', 'bar', 'baz']
コード例 #3
0
ファイル: test_utils.py プロジェクト: GWhized/dexy
def test_split_path_with_root():
    path = "/foo/bar/baz"
    assert split_path(path) == ['', 'foo', 'bar', 'baz']
コード例 #4
0
ファイル: test_utils.py プロジェクト: GWhized/dexy
def test_split_path():
    path = "foo/bar/baz"
    assert split_path(path) == ['foo', 'bar', 'baz']
コード例 #5
0
def test_split_path_with_root():
    path = "/foo/bar/baz"
    assert split_path(path) == ["", "foo", "bar", "baz"]
コード例 #6
0
def test_split_path():
    path = "foo/bar/baz"
    assert split_path(path) == ["foo", "bar", "baz"]