def test_upper_case_umlauts(self): valid = renamer.format_filename('this is ÖMÜR.mp3') self.assertEqual(valid, 'this is OMUR.mp3')
def test_inch_and_quotations(self): valid = renamer.format_filename('any "file" (7" version).mp3') self.assertEqual(valid, 'any file (7in version).mp3')
def test_umlauts(self): valid = renamer.format_filename('any "füle".mp3') self.assertEqual(valid, 'any fule.mp3')
def test_and_quotations(self): valid = renamer.format_filename('any "file".mp3') self.assertEqual(valid, 'any file.mp3')
def test_parenthesis_and_inch(self): valid = renamer.format_filename('any file [7" version].mp3') self.assertEqual(valid, 'any file (7in version).mp3')
def test_parenthesis(self): valid = renamer.format_filename('any file [feat. dummy].txt') self.assertEqual(valid, 'any file (feat. dummy).txt')
def test_simple_name_with_replace(self): valid = renamer.format_filename('any file?.txt') self.assertEqual(valid, 'any file_.txt')
def test_simple_name(self): valid = renamer.format_filename('any file.txt') self.assertEqual(valid, 'any file.txt')