':py:obj:`Context.set_tmp_ecdh` sets the elliptic curve for
Diffie-Hellman to the specified curve.'

def test_set_tmp_ecdh(self):

    context = Context(TLSv1_METHOD)
    for curve in get_elliptic_curves():
        context.set_tmp_ecdh(curve)
