def validateBool(value, blank=False, strip=None, allowlistRegexes=None, blocklistRegexes=None, trueVal='<STR_LIT:True>', falseVal='<STR_LIT:False>', caseSensitive=False, excMsg=None):
<EOL>_validateGenericParameters(blank=blank, strip=strip, allowlistRegexes=allowlistRegexes, blocklistRegexes=blocklistRegexes)<EOL>returnNow, value = _prevalidationCheck(value, blank, strip, allowlistRegexes, blocklistRegexes, excMsg)<EOL>if returnNow:<EOL><INDENT>return value<EOL><DEDENT>trueVal = str(trueVal)<EOL>falseVal = str(falseVal)<EOL>if len(trueVal) == <NUM_LIT:0>:<EOL><INDENT>raise PySimpleValidateException('<STR_LIT>')<EOL><DEDENT>if len(falseVal) == <NUM_LIT:0>:<EOL><INDENT>raise PySimpleValidateException('<STR_LIT>')<EOL><DEDENT>if (trueVal == falseVal) or (not caseSensitive and trueVal.upper() == falseVal.upper()):<EOL><INDENT>raise PySimpleValidateException('<STR_LIT>')<EOL><DEDENT>if (trueVal[<NUM_LIT:0>] == falseVal[<NUM_LIT:0>]) or (not caseSensitive and trueVal[<NUM_LIT:0>].upper() == falseVal[<NUM_LIT:0>].upper()):<EOL><INDENT>raise PySimpleValidateException('<STR_LIT>')<EOL><DEDENT>result = validateYesNo(value, blank=blank, strip=strip, allowlistRegexes=allowlistRegexes, blocklistRegexes=blocklistRegexes, yesVal=trueVal, noVal=falseVal, caseSensitive=caseSensitive, excMsg=None)<EOL>if result == trueVal:<EOL><INDENT>return True<EOL><DEDENT>elif result == falseVal:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>assert False, '<STR_LIT>'<EOL><DEDENT>
Raises ValidationException if value is not an email address.
    Returns the yesVal or noVal argument, not value.

    * value (str): The value being validated as an email address.
    * blank (bool):  If True, a blank string will be accepted. Defaults to False.
    * strip (bool, str, None): If None, whitespace is stripped from value. If a str, the characters in it are stripped from value. If False, nothing is stripped.
    * allowlistRegexes (Sequence, None): A sequence of regex str that will explicitly pass validation, even if they aren't numbers.
    * blocklistRegexes (Sequence, None): A sequence of regex str or (regex_str, response_str) tuples that, if matched, will explicitly fail validation.
    * excMsg (str): A custom message to use in the raised ValidationException.

    >>> import pysimplevalidate as pysv
    >>> pysv.validateYesNo('y')
    'yes'
    >>> pysv.validateYesNo('YES')
    'yes'
    >>> pysv.validateYesNo('No')
    'no'
    >>> pysv.validateYesNo('OUI', yesVal='oui', noVal='no')
    'oui'