'SeriesParser: digits (UID)'

def test_digits(self, parse):

    s = parse(name=u'Something', data=u'Something    01    FlexGet')
    assert (s.id == 1), (u'failed    to    parse    %s' % s.data)
    assert (s.id_type == u'sequence')
    s = parse(name=u'Something', data=u'Something-121.H264.FlexGet')
    assert (s.id == 121), (u'failed    to    parse    %s' % s.data)
    assert (s.id_type == u'sequence')
    s = parse(name=u'Something', data=u'Something    1    AC3')
    assert (s.id == 1), (u'failed    to    parse    %s' % s.data)
    assert (s.id_type == u'sequence')
    s = parse(name=u'Something', data=u'[TheGroup]    Something    -    12    1280x720    x264-Hi10P')
    assert (s.id == 12), (u'failed    to    parse    %s' % s.data)
    assert (s.id_type == u'sequence')
