'Check whether the instance conforms to the given format.
:argument instance: the instance to check
:type: any primitive type (str, number, bool)
:argument str format: the format that instance should conform to
:rtype: bool'

def conforms(self, instance, format):

    try:
        self.check(instance, format)
    except FormatError:
        return False
    else:
        return True
