def test_set_tlsext_use_srtp_invalid_profile(self):
    "\n        `Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.\n\n        It raises an Error if the call to OpenSSL fails.\n        "
    context = Context(TLSv1_METHOD)
    with pytest.raises(Error):
        context.set_tlsext_use_srtp(b'SRTP_BOGUS')
`Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.

It raises an Error if the call to OpenSSL fails.
def test_set_tlsext_use_srtp_invalid_profile(self):
    "\n        `Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.\n\n        It raises an Error if the call to OpenSSL fails.\n        "
    context = Context(TLSv1_METHOD)
    with pytest.raises(Error):
        context.set_tlsext_use_srtp(b'SRTP_BOGUS')