def test_alpn_not_implemented(self):
    '\n            If ALPN is not in OpenSSL, we should raise NotImplementedError.\n            '
    context = Context(TLSv1_METHOD)
    with pytest.raises(NotImplementedError):
        context.set_alpn_protos(None)
    with pytest.raises(NotImplementedError):
        context.set_alpn_select_callback(None)
    conn = Connection(context)
    with pytest.raises(NotImplementedError):
        conn.set_alpn_protos(None)
If ALPN is not in OpenSSL, we should raise NotImplementedError.
def test_alpn_not_implemented(self):
    '\n            \n            '
    context = Context(TLSv1_METHOD)
    with pytest.raises(NotImplementedError):
        context.set_alpn_protos(None)
    with pytest.raises(NotImplementedError):
        context.set_alpn_select_callback(None)
    conn = Connection(context)
    with pytest.raises(NotImplementedError):
        conn.set_alpn_protos(None)