'SeriesParser: quality in parenthesis'

def test_quality_parenthesis(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'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'Foo    Bar', data=u'[720p]Foo.Bar.S01E01.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)
