def test_alpn_not_implemented(self):
            # Test the context methods first.
            context = Context(TLSv1_METHOD)
            self.assertRaises(
                NotImplementedError, context.set_alpn_protos, None
            )
            self.assertRaises(
                NotImplementedError, context.set_alpn_select_callback, None
            )

            # Now test a connection.
            conn = Connection(context)
            self.assertRaises(
                NotImplementedError, context.set_alpn_protos, None
            )
L{SSHPublicKeyDatabase.checkKey} should retrieve the content of the
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/test/test_ssl.py/ApplicationLayerProtoNegotiationTests.test_alpn_not_implemented--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/test/test_checkers.py/SSHPublicKeyDatabaseTestCase.test_checkKey2