Beispiel #1
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == ['c', 'b', 'a']
Beispiel #2
0
def test_parse_path_slash():
    assert parse_path(u'/') == []
Beispiel #3
0
def test_parse_path_slash():
    assert parse_path(u"/") == []
Beispiel #4
0
def test_parse_path_end_slash():
    assert parse_path("a/b/c/") == ["c", "b", "a"]
Beispiel #5
0
def test_parse_path_dots():
    assert parse_path(u'/a/b/../c') == parse_path(u'/a/c')
Beispiel #6
0
def test_parse_path_dots_start():
    assert parse_path(u'/../a/b') == parse_path(u'/a/b')
Beispiel #7
0
def test_parse_path_no_slash():
    assert parse_path("a/b/c") == ["a", "b", "c"]
Beispiel #8
0
def test_parse_path_end_slash():
    assert parse_path('a/b/c/') == ['a', 'b', 'c']
Beispiel #9
0
def test_parse_path():
    assert parse_path("/a/b/c") == ["a", "b", "c"]
Beispiel #10
0
def test_parse_path_slash():
    assert parse_path("/") == []
Beispiel #11
0
def test_parse_path_dots_start():
    assert parse_path(u'/../a/b') == parse_path(u'/a/b')
Beispiel #12
0
def test_parse_path_dots():
    assert parse_path(u'/a/b/../c') == parse_path(u'/a/c')
Beispiel #13
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == [u'a', u'b', u'c']
Beispiel #14
0
def test_parse_path_end_slash():
    assert parse_path('a/b/c/') == ['c', 'b', 'a']
Beispiel #15
0
def test_parse_path_end_slash():
    assert parse_path("a/b/c/") == ["a", "b", "c"]
Beispiel #16
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == ['c', 'b', 'a']
Beispiel #17
0
def test_parse_path_multi_slash():
    assert parse_path("/a/b/c") == parse_path("/a//b/c")
    assert parse_path("/a/b/c") == parse_path("/a///b/c")
Beispiel #18
0
def test_parse_path_multi_slash():
    assert parse_path(u'/a/b/c') == parse_path(u'/a//b/c')
    assert parse_path(u'/a/b/c') == parse_path(u'/a///b/c')
Beispiel #19
0
def test_parse_path_dots():
    assert parse_path("/a/b/../c") == parse_path("/a/c")
Beispiel #20
0
def test_parse_path_single_dots():
    assert parse_path(u'/a/./b') == parse_path(u'/a/b')
    assert parse_path(u'./a/b') == parse_path(u'/a/b')
Beispiel #21
0
def test_parse_path_single_dots():
    assert parse_path("/a/./b") == parse_path("/a/b")
    assert parse_path("./a/b") == parse_path("/a/b")
Beispiel #22
0
def test_parse_path():
    assert parse_path(u"/a/b/c") == ["c", "b", "a"]
Beispiel #23
0
def test_parse_path_dots_start():
    assert parse_path("/../a/b") == parse_path("/a/b")
Beispiel #24
0
def test_parse_path_no_slash():
    assert parse_path("a/b/c") == ["c", "b", "a"]
Beispiel #25
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == [u'a', u'b', u'c']
Beispiel #26
0
def test_parse_path_multi_slash():
    assert parse_path(u"/a/b/c") == parse_path(u"/a//b/c")
    assert parse_path(u"/a/b/c") == parse_path(u"/a///b/c")
Beispiel #27
0
def test_parse_path_empty():
    assert parse_path(u'') == []
Beispiel #28
0
def test_parse_path_empty():
    assert parse_path(u'') == []
Beispiel #29
0
def test_parse_path_slash():
    assert parse_path(u'/') == []
Beispiel #30
0
def test_parse_path_no_slash():
    assert parse_path('a/b/c') == ['c', 'b', 'a']
Beispiel #31
0
def test_parse_path_no_slash():
    assert parse_path('a/b/c') == ['a', 'b', 'c']
Beispiel #32
0
def test_parse_path_multi_slash():
    assert parse_path(u'/a/b/c') == parse_path(u'/a//b/c')
    assert parse_path(u'/a/b/c') == parse_path(u'/a///b/c')
Beispiel #33
0
def test_parse_path_single_dots():
    assert parse_path(u'/a/./b') == parse_path(u'/a/b')
    assert parse_path(u'./a/b') == parse_path(u'/a/b')