

def test_ssl_options():
    server_opts = ssl_server_options()
    if hasattr(ssl, 'SSLContext'):
        assert isinstance(server_opts, ssl.SSLContext)
        assert (server_opts.verify_mode == 0)
    else:
        for name in ['ca_certs', 'keyfile', 'certfile']:
            assert os.path.isfile(server_opts[name])
        assert (server_opts['cert_reqs'] == 0)

dataset/ETHPy150Open openpermissions/koi/tests/unit/ssl/test_configure.py test_ssl_options/original