예제 #1
0
def test_empty_hmac_in_prod():
    validate_settings(settings)
예제 #2
0
def test_empty_hmac_in_dev():
    # Should not raise an exception.
    validate_settings(settings)
예제 #3
0
def test_session_cookie_ok():
    """Raise an exception if session cookies aren't secure in production."""
    validate_settings(settings)
예제 #4
0
def test_secret_key_ok():
    """Validate required security-related settings.

    Don't raise exceptions when required settings are set properly."""
    validate_settings(settings)
예제 #5
0
def test_empty_secret_key_for_prod():
    validate_settings(settings)
예제 #6
0
def test_insecure_session_cookie_for_dev():
    validate_settings(settings)