コード例 #1
0
ファイル: test_traject.py プロジェクト: blaflamme/morepath
def test_parse_path():
    assert parse_path(u'/a/b/c') == ['c', 'b', 'a']
コード例 #2
0
ファイル: test_traject.py プロジェクト: blaflamme/morepath
def test_parse_path_slash():
    assert parse_path(u'/') == []
コード例 #3
0
ファイル: test_traject.py プロジェクト: reinout/morepath
def test_parse_path_slash():
    assert parse_path(u"/") == []
コード例 #4
0
ファイル: test_traject.py プロジェクト: reinout/morepath
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
ファイル: test_traject.py プロジェクト: gotcha/morepath
def test_parse_path_dots_start():
    assert parse_path(u'/../a/b') == parse_path(u'/a/b')
コード例 #12
0
ファイル: test_traject.py プロジェクト: gotcha/morepath
def test_parse_path_dots():
    assert parse_path(u'/a/b/../c') == parse_path(u'/a/c')
コード例 #13
0
ファイル: test_traject.py プロジェクト: gotcha/morepath
def test_parse_path():
    assert parse_path(u'/a/b/c') == [u'a', u'b', u'c']
コード例 #14
0
ファイル: test_traject.py プロジェクト: blaflamme/morepath
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
ファイル: test_traject.py プロジェクト: blaflamme/morepath
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
ファイル: test_traject.py プロジェクト: reinout/morepath
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
ファイル: test_traject.py プロジェクト: reinout/morepath
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
ファイル: test_traject.py プロジェクト: reinout/morepath
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
ファイル: test_traject.py プロジェクト: blaflamme/morepath
def test_parse_path_empty():
    assert parse_path(u'') == []
コード例 #29
0
def test_parse_path_slash():
    assert parse_path(u'/') == []
コード例 #30
0
ファイル: test_traject.py プロジェクト: blaflamme/morepath
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
ファイル: test_traject.py プロジェクト: blaflamme/morepath
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
ファイル: test_traject.py プロジェクト: morepath/morepath
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')