@@ -0,0 +1,1144 @@
+from __future__ import unicode_literals, division, absolute_import%0Afrom tests import FlexGetBase%0A%0A#todo: merge into test_series%0A%0Adef age_series(**kwargs):%0A    from flexget.plugins.filter.series import Release%0A    from flexget.manager import Session%0A    import datetime%0A    session = Session()%0A    session.query(Release).update(%7B'first_seen': datetime.datetime.now() - datetime.timedelta(**kwargs)%7D)%0A    session.commit()%0A%0Aclass TestImportSeries(FlexGetBase):%0A%0A    __yaml__ = %22%22%22%0A        tasks:%0A          test_import_altnames:%0A            configure_series:%0A              from:%0A                mock:%0A                  - %7Btitle: 'the show', alternate_name: 'le show'%7D%0A            mock:%0A              - title: le show s03e03%0A    %22%22%22%0A%0A    def test_timeframe_max(self):%0A        %22%22%22Tests configure_series as well as timeframe with max_quality.%22%22%22%0A        self.execute_task('test_import_altnames')%0A        entry = self.task.find_entry(title='le show s03e03')%0A        assert entry.accepted, 'entry matching series alternate name should have been accepted.'%0A        assert entry%5B'series_name'%5D == 'the show', 'entry series should be set to the main name'%0A

Test for series configure loading alternate name