'Raise L{NotImplementedError} if pyOpenSSL is based on cryptography but
cryptography lacks required EC methods.'

def test_nonECbinding(self):

    def raiser(self):
        raise AttributeError
    lib = FakeLib()
    lib.OBJ_sn2nid = raiser
    self.patch(sslverify._OpenSSLECCurve, '_getBinding', (lambda self: FakeBinding(lib=lib)))
    self.assertRaises(NotImplementedError, sslverify._OpenSSLECCurve, sslverify._defaultCurveName)
