'SeriesParser: quality'

def test_quality(self, parse):

    s = parse(name=u'Foo    Bar', data=u'Foo.Bar.S01E01.720p.HDTV.x264-FlexGet')
    assert ((s.season == 1) and (s.episode == 1)), (u'failed    to    parse    episodes    from    %s' % s.data)
    assert (s.quality.name == u'720p    hdtv    h264'), (u'failed    to    parse    quality    from    %s' % s.data)
    s = parse(name=u'Test', data=u'Test.S01E01.720p-FlexGet')
    assert (s.quality.name == u'720p'), (u'failed    to    parse    quality    from    %s' % s.data)
    s = parse(name=u'30    Suck', data=u'30    Suck    4x4    [HDTV    -    FlexGet]')
    assert (s.quality.name == u'hdtv'), (u'failed    to    parse    quality    %s' % s.data)
    s = parse(name=u'ShowB', data=u'ShowB.S04E19.Name    of    Ep.720p.WEB-DL.DD5.1.H.264')
    assert (s.quality.name == u'720p    webdl    h264    dd5.1'), (u'failed    to    parse    quality    %s' % s.data)
