示例#1
0
def test_normpath_many_double_dots_no_root():
	assert file.normpath('A/../../../../../B/') == 'B/'
示例#2
0
def test_normpath_all_fixes():
	assert file.normpath('/A/./B//C/../../D') == '/A/D'
示例#3
0
def test_normpath_single_dots():
	assert file.normpath('/A/./B/') == '/A/B/'
示例#4
0
def test_normpath_many_double_dots():
	assert file.normpath('/A/../../../../../B/') == '/B/'
示例#5
0
def test_normpath_empty_path():
	assert file.normpath('/A//B') == '/A/B'
示例#6
0
def test_normpath_neither_slash():
	assert file.normpath('A/B/C') == 'A/B/C'
示例#7
0
def test_normpath_no_trailing_slash():
	assert file.normpath('/A/B/C') == '/A/B/C'
示例#8
0
def test_normpath_no_leading_slash():
	assert file.normpath('A/B/C/') == 'A/B/C/'
示例#9
0
def test_normpath():
	assert file.normpath('/A/B/C/') == '/A/B/C/'