예제 #1
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == ['c', 'b', 'a']
예제 #2
0
def test_parse_path_slash():
    assert parse_path(u'/') == []
예제 #3
0
def test_parse_path_slash():
    assert parse_path(u"/") == []
예제 #4
0
def test_parse_path_end_slash():
    assert parse_path("a/b/c/") == ["c", "b", "a"]
예제 #5
0
def test_parse_path_dots():
    assert parse_path(u'/a/b/../c') == parse_path(u'/a/c')
예제 #6
0
def test_parse_path_dots_start():
    assert parse_path(u'/../a/b') == parse_path(u'/a/b')
예제 #7
0
def test_parse_path_no_slash():
    assert parse_path("a/b/c") == ["a", "b", "c"]
예제 #8
0
def test_parse_path_end_slash():
    assert parse_path('a/b/c/') == ['a', 'b', 'c']
예제 #9
0
def test_parse_path():
    assert parse_path("/a/b/c") == ["a", "b", "c"]
예제 #10
0
def test_parse_path_slash():
    assert parse_path("/") == []
예제 #11
0
def test_parse_path_dots_start():
    assert parse_path(u'/../a/b') == parse_path(u'/a/b')
예제 #12
0
def test_parse_path_dots():
    assert parse_path(u'/a/b/../c') == parse_path(u'/a/c')
예제 #13
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == [u'a', u'b', u'c']
예제 #14
0
def test_parse_path_end_slash():
    assert parse_path('a/b/c/') == ['c', 'b', 'a']
예제 #15
0
def test_parse_path_end_slash():
    assert parse_path("a/b/c/") == ["a", "b", "c"]
예제 #16
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == ['c', 'b', 'a']
예제 #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")
예제 #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')
예제 #19
0
def test_parse_path_dots():
    assert parse_path("/a/b/../c") == parse_path("/a/c")
예제 #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')
예제 #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")
예제 #22
0
def test_parse_path():
    assert parse_path(u"/a/b/c") == ["c", "b", "a"]
예제 #23
0
def test_parse_path_dots_start():
    assert parse_path("/../a/b") == parse_path("/a/b")
예제 #24
0
def test_parse_path_no_slash():
    assert parse_path("a/b/c") == ["c", "b", "a"]
예제 #25
0
def test_parse_path():
    assert parse_path(u'/a/b/c') == [u'a', u'b', u'c']
예제 #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")
예제 #27
0
def test_parse_path_empty():
    assert parse_path(u'') == []
예제 #28
0
def test_parse_path_empty():
    assert parse_path(u'') == []
예제 #29
0
def test_parse_path_slash():
    assert parse_path(u'/') == []
예제 #30
0
def test_parse_path_no_slash():
    assert parse_path('a/b/c') == ['c', 'b', 'a']
예제 #31
0
def test_parse_path_no_slash():
    assert parse_path('a/b/c') == ['a', 'b', 'c']
예제 #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')
예제 #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')