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