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')
def test_unixstyle_ext(self): assert '.file' == remove_file_extension('.file.1')
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')
def test_two_extensions(self): assert 'file.1' == remove_file_extension('file.1.2')
def test_remove_ext(self): assert 'file' == remove_file_extension('file.1')
def test_no_extension(self): assert 'file' == remove_file_extension('file')