示例#1
0
 def test_win32style_path(self):
     assert 'C:\\a\\b\\c' == remove_file_extension('C:\\a\\b\\c')
     assert 'C:\\a\\b\\c' == remove_file_extension('C:\\a\\b\\c.1')
示例#2
0
 def test_unixstyle_ext(self):
     assert '.file' == remove_file_extension('.file.1')
示例#3
0
 def test_unixstyle_path(self):
     assert '/a/b/c' == remove_file_extension('/a/b/c')
     assert '/a/b/c' == remove_file_extension('/a/b/c.1')
示例#4
0
 def test_two_extensions(self):
     assert 'file.1' == remove_file_extension('file.1.2')
示例#5
0
 def test_remove_ext(self):
     assert 'file' == remove_file_extension('file.1')
示例#6
0
 def test_win32style_path(self):
     assert 'C:\\a\\b\\c' == remove_file_extension('C:\\a\\b\\c')
     assert 'C:\\a\\b\\c' == remove_file_extension('C:\\a\\b\\c.1')
示例#7
0
 def test_no_extension(self):
     assert 'file' == remove_file_extension('file')
示例#8
0
 def test_unixstyle_path(self):
     assert '/a/b/c' == remove_file_extension('/a/b/c')
     assert '/a/b/c' == remove_file_extension('/a/b/c.1')
示例#9
0
 def test_unixstyle_ext(self):
     assert '.file' == remove_file_extension('.file.1')
示例#10
0
 def test_remove_ext(self):
     assert 'file' == remove_file_extension('file.1')
示例#11
0
 def test_two_extensions(self):
     assert 'file.1' == remove_file_extension('file.1.2')
示例#12
0
 def test_no_extension(self):
     assert 'file' == remove_file_extension('file')