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