'Series plugin: override metainfo_series'

def test_metainfo_series_override(self, execute_task):

    task = execute_task(u'metainfo_series_override')
    entry = task.find_entry(u'entries', title=u'Other.Show.with.extra.crap.S02E01.PDTV.XViD-FlexGet')
    assert entry[u'series_guessed'], u'series    should    have    been    guessed'
    assert (entry[u'series_name'] == entry[u'series_parser'].name == u'Other    Show    With    Extra    Crap'), u'metainfo_series    is    not    running'
    entry = task.find_entry(u'accepted', title=u'Test.Series.with.extra.crap.S01E02.PDTV.XViD-FlexGet')
    assert (not entry.get(u'series_guessed')), u'series    plugin    should    override    series_guessed'
    assert (entry[u'series_name'] == entry[u'series_parser'].name == u'Test    Series'), (u"Series    name    should    be    'Test    Series',    was:    entry:    %s,    parser:    %s" % (entry[u'series_name'], entry[u'series_parser'].name))
