Exemple #1
0
def test_check_server_private_key_invalid(settings, private_key):
    settings.SERVER_PRIVATE_KEY = private_key
    errors = check_server_private_key(None)
    assert errors
    assert isinstance(errors[0], Error)
Exemple #2
0
def test_check_server_private_key(settings, private_key):
    settings.SERVER_PRIVATE_KEY = private_key
    errors = check_server_private_key(None)
    assert not errors
Exemple #3
0
def test_check_server_private_key(settings, private_key):
    settings.SERVER_PRIVATE_KEY = private_key
    errors = check_server_private_key(None)
    assert not errors
Exemple #4
0
def test_check_server_private_key_invalid(settings, private_key):
    settings.SERVER_PRIVATE_KEY = private_key
    errors = check_server_private_key(None)
    assert errors
    assert isinstance(errors[0], Error)