Example #1
0
 def test_fov_repeat_file_names(self):
     """
     Test fov repeat file names
     """
     name_parser = parser.NameParser()
     self._test_names(name_parser, 'fov_repeat', lambda x: x + '.avi')
Example #2
0
 def test_scene_date_format_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'scene_date_format', lambda x: x + '.avi')
Example #3
0
 def test_standard_repeat_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'standard_repeat')
Example #4
0
 def test_stupid_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'stupid', lambda x: x + '.avi')
Example #5
0
 def test_no_season_multi_ep_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'no_season_multi_ep', lambda x: x + '.avi')
Example #6
0
 def test_season_only_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'season_only')
Example #7
0
 def test_fov_repeat_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'fov_repeat', lambda x: x + '.avi')
Example #8
0
 def test_s_only_file_names(self):
     """
     Test season only file names
     """
     name_parser = parser.NameParser()
     self._test_names(name_parser, 'season_only', lambda x: x + '.avi')
Example #9
0
 def test_anime_sxxexx_file_names(self):
     """
     Test anime SxxExx file names
     """
     name_parser = parser.NameParser(parse_method='anime')
     self._test_names(name_parser, 'anime_SxxExx', lambda x: x + '.avi')
Example #10
0
 def test_no_s_multi_ep_names(self):
     """
     Test no season multi episode names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'no_season_multi_ep')
Example #11
0
 def test_s_only_names(self):
     """
     Test season only names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'season_only')
Example #12
0
 def test_no_s_general_names(self):
     """
     Test no season general names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'no_season_general')
Example #13
0
 def test_stupid_file_names(self):
     """
     Test stupid file names
     """
     name_parser = parser.NameParser()
     self._test_names(name_parser, 'stupid', lambda x: x + '.avi')
Example #14
0
 def test_stupid_names(self):
     """
     Test stupid names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'stupid')
Example #15
0
 def test_no_season_general_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'no_season_general')
Example #16
0
 def test_no_s_names(self):
     """
     Test no season names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'no_season')
Example #17
0
 def test_no_season_multi_ep_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'no_season_multi_ep')
Example #18
0
 def test_no_s_file_names(self):
     """
     Test no season file names
     """
     name_parser = parser.NameParser()
     self._test_names(name_parser, 'no_season', lambda x: x + '.avi')
Example #19
0
 def test_scene_date_format_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'scene_date_format')
Example #20
0
 def test_bare_names(self):
     """
     Test bare names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'bare')
Example #21
0
 def test_bare_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'bare', lambda x: x + '.avi')
Example #22
0
 def test_bare_file_names(self):
     """
     Test bare file names
     """
     name_parser = parser.NameParser()
     self._test_names(name_parser, 'bare', lambda x: x + '.avi')
Example #23
0
 def test_no_season_general_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'no_season_general', lambda x: x + '.avi')
Example #24
0
 def test_scene_date_fmt_names(self):
     """
     Test scene date format names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'scene_date_format')
Example #25
0
 def test_season_only_file_names(self):
     np = parser.NameParser()
     self._test_names(np, 'season_only', lambda x: x + '.avi')
Example #26
0
 def test_bare_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'bare')
Example #27
0
 def _test_unicode(self, name, result):
     np = parser.NameParser(True)
     parse_result = np.parse(name)
     # this shouldn't raise an exception
     a = repr(str(parse_result))
Example #28
0
 def test_stupid_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'stupid')
Example #29
0
 def test_fov_repeat_names(self):
     np = parser.NameParser(False)
     self._test_names(np, 'fov_repeat')
Example #30
0
 def test_fov_repeat_names(self):
     """
     Test fov repeat names
     """
     name_parser = parser.NameParser(False)
     self._test_names(name_parser, 'fov_repeat')