Esempio n. 1
0
def test_parse_ssl_cert_reqs_bad_value():
    with pytest.raises(KeyError):
        parse_ssl_cert_reqs('badvalue')
Esempio n. 2
0
def test_parse_ssl_cert_reqs(query_param, ssl_available, expected):
    kombu.utils.url.ssl_available = ssl_available
    result = parse_ssl_cert_reqs(query_param)
    kombu.utils.url.ssl_available = True
    assert result == expected