예제 #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/'