':py:obj:`Context.add_client_ca` raises :py:obj:`TypeError` if called with a non-X509
object or with a number of arguments other than one.'

def test_add_client_ca_errors(self):

    ctx = Context(TLSv1_METHOD)
    cacert = load_certificate(FILETYPE_PEM, root_cert_pem)
    self.assertRaises(TypeError, ctx.add_client_ca)
    self.assertRaises(TypeError, ctx.add_client_ca, 'spam')
    self.assertRaises(TypeError, ctx.add_client_ca, cacert, cacert)
