'Raise L{ValueError} on unknown sn names.'

def test_wrongName(self):

    lib = FakeLib()
    lib.OBJ_sn2nid = (lambda self: FakeLib.NID_undef)
    self.patch(sslverify._OpenSSLECCurve, '_getBinding', (lambda self: FakeBinding(lib=lib)))
    self.assertRaises(ValueError, sslverify._OpenSSLECCurve, u'doesNotExist')
