'Series plugin: test several standard features'

def test_smoke(self, execute_task):

    task = execute_task(u'test')
    assert task.find_entry(title=u'Another.Series.S01E20.720p.XViD-FlexGet'), u'Another.Series.S01E20.720p.XViD-FlexGet    should    have    passed'
    df = [u'Date.Series.10-11-2008.XViD', u'Date.Series.10.12.2008.XViD', u'Date    Series    2010    11    17    XViD', u'Date.Series.2008-10-13.XViD', u'Date.Series.10.14.09.XViD']
    for d in df:
        entry = task.find_entry(title=d)
        assert entry, (u'Date    format    did    not    match    %s' % d)
        assert (u'series_parser' in entry), (u'series_parser    missing    from    %s' % d)
        assert (entry[u'series_parser'].id_type == u'date'), (u'%s    did    not    return    three    groups    for    dates' % d)
    assert task.find_entry(filename=u'Filename.Series.S01E26.XViD'), u'Filename    parsing    failed'
    assert task.find_entry(title=u'Empty.Description.S01E22.XViD'), u'Empty    Description    failed'
    assert task.find_entry(u'rejected', title=u'Another.Series.S01E21.1080p.H264-FlexGet'), u'regexp    chaining'
