def is_enabled():
    enabled = getattr(settings, "BCRYPT_ENABLED", True)
    if not enabled:
        return False
    # Are we under a test?
    if hasattr(mail, 'outbox'):
        return getattr(settings, "BCRYPT_ENABLED_UNDER_TEST", False)
    return True
Called when a test raises an error. If C{realtime} is set, then it
dataset/ETHPy150Open dwaiter/django-bcrypt/django_bcrypt/models.py/is_enabled--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/trial/reporter.py/Reporter.addError