'Series plugin: episode advancement (backwards)'

def test_backwards(self, execute_task):

    task = execute_task(u'test_backwards_1')
    assert task.find_entry(u'accepted', title=u'backwards    s02e12'), u'backwards    s02e12    should    have    been    accepted'
    assert task.find_entry(u'accepted', title=u'backwards    s02e10'), u'backwards    s02e10    should    have    been    accepted    within    grace    margin'
    task = execute_task(u'test_backwards_2')
    assert task.find_entry(u'accepted', title=u'backwards    s02e01'), u'backwards    s02e01    should    have    been    accepted,    in    current    season'
    task = execute_task(u'test_backwards_3')
    assert task.find_entry(u'rejected', title=u'backwards    s01e01'), u'backwards    s01e01    should    have    been    rejected,    in    previous    season'
    task = execute_task(u'test_backwards_okay_1')
    assert task.find_entry(u'accepted', title=u'backwards    s01e02'), u'backwards    s01e01    should    have    been    accepted,    backfill    enabled'
    task = execute_task(u'test_backwards_okay_2')
    assert task.find_entry(u'accepted', title=u'backwards    s01e03'), u'backwards    s01e01    should    have    been    accepted,    tracking    off'
