def test_set_client_ca_list_errors(self):
    '\n        `Context.set_client_ca_list` raises a `TypeError` if called with a\n        non-list or a list that contains objects other than X509Names.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.set_client_ca_list('spam')
    with pytest.raises(TypeError):
        ctx.set_client_ca_list(['spam'])
`Context.set_client_ca_list` raises a `TypeError` if called with a
non-list or a list that contains objects other than X509Names.
def test_set_client_ca_list_errors(self):
    '\n        `Context.set_client_ca_list` raises a `TypeError` if called with a\n        non-list or a list that contains objects other than X509Names.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.set_client_ca_list('spam')
    with pytest.raises(TypeError):
        ctx.set_client_ca_list(['spam'])