'Splits fixture name in name, serialization format, compression format.'

def parse_name(self, fixture_name):

    parts = fixture_name.rsplit(u'.', 2)
    if ((len(parts) > 1) and (parts[(-1)] in self.compression_formats)):
        cmp_fmt = parts[(-1)]
        parts = parts[:(-1)]
    else:
        cmp_fmt = None
    if (len(parts) > 1):
        if (parts[(-1)] in self.serialization_formats):
            ser_fmt = parts[(-1)]
            parts = parts[:(-1)]
        else:
            raise CommandError((u"Problem    installing    fixture    '%s':    %s    is    not    a    known    serialization    format." % (u''.join(parts[:(-1)]), parts[(-1)])))
    else:
        ser_fmt = None
    name = u'.'.join(parts)
    return (name, ser_fmt, cmp_fmt)
