示例#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')