def test_set_tlsext_use_srtp_not_bytes(self):
    "\n        `Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.\n\n        It raises a TypeError if the list of profiles is not a byte string.\n        "
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.set_tlsext_use_srtp(text_type('SRTP_AES128_CM_SHA1_80'))
`Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.

It raises a TypeError if the list of profiles is not a byte string.
def test_set_tlsext_use_srtp_not_bytes(self):
    "\n        `Context.set_tlsext_use_srtp' enables negotiating SRTP keying material.\n\n        It raises a TypeError if the list of profiles is not a byte string.\n        "
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.set_tlsext_use_srtp(text_type('SRTP_AES128_CM_SHA1_80'))