Exemplo n.º 1
0
 def test_verify_filename_oneshot(self):
     """
     Tests for the renaming of oneshot manga chapters.
     """
     filename = file_renamer(
         'Absolute Boyfriend -.- Oneshot Lover\'s Quarrel.cbz', {})[0]
     self.assertEqual(filename, self.correct_oneshot_filename)
Exemplo n.º 2
0
 def test_verify_filename_special_characters(self):
     """
     Tests for special characters in the chapter title portion of the filename.
     """
     filename = file_renamer('.hackg.u.+ -.- .hackg.u.+ Chapter 001.cbz',
                             {})[0]
     self.assertEqual(filename, self.special_filename)
Exemplo n.º 3
0
 def test_verify_filename_ch_spaceless(self):
     """
     Tests for "Ch" as the delimiter in the filename.
     """
     filename = file_renamer('Absolute Boyfriend -.- Ch01 Lover Shop.cbz',
                             {})[0]
     self.assertEqual(filename, self.correct_filename)
Exemplo n.º 4
0
 def test_verify_filename_act(self):
     """
     Tests for "Act" as the delimiter in the filename.
     """
     filename = file_renamer('Absolute Boyfriend -.- Act 01 Lover Shop.cbz',
                             {})[0]
     self.assertEqual(filename, self.correct_filename)
Exemplo n.º 5
0
 def test_verify_filename_series_name(self):
     """
     Tests for the series title as the delimiter in the filename.
     """
     filename = file_renamer(
         'Absolute Boyfriend -.- Absolute Boyfriend 01 Lover Shop.cbz',
         {})[0]
     self.assertEqual(filename, self.correct_filename)