'Series plugin: multiple downloaded and new episodes are handled correctly'

def test_downloaded(self, execute_task):

    task = execute_task(u'test_1')
    task = execute_task(u'test_2')
    accepted = [u'Foo.Bar.S02E03.HDTV.XviD-FlexGet', u'Foo.Bar.S02E05.720p.HDTV.XviD-YYY']
    for item in accepted:
        assert task.find_entry(u'accepted', title=item), (u'%s    should    have    been    accepted' % item)
    rejected = [u'Foo.Bar.S02E04.XviD-2HD[ASDF]', u'Foo.Bar.S02E04.HDTV.720p.XviD-2HD[FlexGet]', u'Foo.Bar.S02E04.DSRIP.XviD-2HD[ASDF]', u'Foo.Bar.S02E04.HDTV.1080p.XviD-2HD[ASDF]']
    for item in rejected:
        assert task.find_entry(u'rejected', title=item), (u'%s    should    have    been    rejected' % item)
