예제 #1
0
def test_escape_filename_quote():
    i = 'abc"'
    eq(gitweb._escape_filename(i), 'abc\\"')
예제 #2
0
def test_escape_filename_slashtwo():
    i = "ab\\\\c"
    eq(gitweb._escape_filename(i), "ab\\\\\\\\c")
예제 #3
0
def test_escape_filename_dollar():
    i = "abc$"
    eq(gitweb._escape_filename(i), "abc\\$")
예제 #4
0
def test_escape_filename_normal():
    i = "abc"
    eq(gitweb._escape_filename(i), "abc")