@classmethod
def from_content(cls, version, type, format_file=None):
    """
        Write a format file from I{type} and I{format} at
        I{format_file}

        @param version: the source package format version
        @param type: the format type
        @param format_file: the format file to create with
            the above parameters
        """
    format_file = format_file or cls.format_file
    with open(cls.format_file, 'w') as f:
        f.write('%s (%s)' % (version, type))
    return cls.parse_file(cls.format_file)
