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