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