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')
def test_scene_date_format_file_names(self): np = parser.NameParser() self._test_names(np, 'scene_date_format', lambda x: x + '.avi')
def test_standard_repeat_names(self): np = parser.NameParser(False) self._test_names(np, 'standard_repeat')
def test_stupid_file_names(self): np = parser.NameParser() self._test_names(np, 'stupid', lambda x: x + '.avi')
def test_no_season_multi_ep_file_names(self): np = parser.NameParser() self._test_names(np, 'no_season_multi_ep', lambda x: x + '.avi')
def test_season_only_names(self): np = parser.NameParser(False) self._test_names(np, 'season_only')
def test_fov_repeat_file_names(self): np = parser.NameParser() self._test_names(np, 'fov_repeat', lambda x: x + '.avi')
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')
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')
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')
def test_s_only_names(self): """ Test season only names """ name_parser = parser.NameParser(False) self._test_names(name_parser, 'season_only')
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')
def test_stupid_file_names(self): """ Test stupid file names """ name_parser = parser.NameParser() self._test_names(name_parser, 'stupid', lambda x: x + '.avi')
def test_stupid_names(self): """ Test stupid names """ name_parser = parser.NameParser(False) self._test_names(name_parser, 'stupid')
def test_no_season_general_names(self): np = parser.NameParser(False) self._test_names(np, 'no_season_general')
def test_no_s_names(self): """ Test no season names """ name_parser = parser.NameParser(False) self._test_names(name_parser, 'no_season')
def test_no_season_multi_ep_names(self): np = parser.NameParser(False) self._test_names(np, 'no_season_multi_ep')
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')
def test_scene_date_format_names(self): np = parser.NameParser(False) self._test_names(np, 'scene_date_format')
def test_bare_names(self): """ Test bare names """ name_parser = parser.NameParser(False) self._test_names(name_parser, 'bare')
def test_bare_file_names(self): np = parser.NameParser() self._test_names(np, 'bare', lambda x: x + '.avi')
def test_bare_file_names(self): """ Test bare file names """ name_parser = parser.NameParser() self._test_names(name_parser, 'bare', lambda x: x + '.avi')
def test_no_season_general_file_names(self): np = parser.NameParser() self._test_names(np, 'no_season_general', lambda x: x + '.avi')
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')
def test_season_only_file_names(self): np = parser.NameParser() self._test_names(np, 'season_only', lambda x: x + '.avi')
def test_bare_names(self): np = parser.NameParser(False) self._test_names(np, 'bare')
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))
def test_stupid_names(self): np = parser.NameParser(False) self._test_names(np, 'stupid')
def test_fov_repeat_names(self): np = parser.NameParser(False) self._test_names(np, 'fov_repeat')
def test_fov_repeat_names(self): """ Test fov repeat names """ name_parser = parser.NameParser(False) self._test_names(name_parser, 'fov_repeat')