':py:obj:`Context.set_client_ca_list` raises a :py:obj:`TypeError` if called with a
non-list or a list that contains objects other than X509Names.'

def test_set_client_ca_list_errors(self):

    ctx = Context(TLSv1_METHOD)
    self.assertRaises(TypeError, ctx.set_client_ca_list, 'spam')
    self.assertRaises(TypeError, ctx.set_client_ca_list, ['spam'])
    self.assertIdentical(ctx.set_client_ca_list([]), None)
