def conforms(self, instance, format):
try:<EOL><INDENT>self.check(instance, format)<EOL><DEDENT>except FormatError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Check whether the instance conforms to the given format.

Arguments:

    instance (*any primitive type*, i.e. str, number, bool):

        The instance to check

    format (str):

        The format that instance should conform to

Returns:

    bool: whether it conformed