def test_set_and_add_client_ca(self):
    '\n        A call to `Context.set_client_ca_list` followed by a call to\n        `Context.add_client_ca` results in using the CA names from the\n        first call and the CA name from the second call.\n        '
    cacert = load_certificate(FILETYPE_PEM, root_cert_pem)
    secert = load_certificate(FILETYPE_PEM, server_cert_pem)
    clcert = load_certificate(FILETYPE_PEM, server_cert_pem)
    cadesc = cacert.get_subject()
    sedesc = secert.get_subject()
    cldesc = clcert.get_subject()

    def mixed_set_add_ca(ctx):
        ctx.set_client_ca_list([cadesc, sedesc])
        ctx.add_client_ca(clcert)
        return [cadesc, sedesc, cldesc]
    self._check_client_ca_list(mixed_set_add_ca)
A call to `Context.set_client_ca_list` followed by a call to
`Context.add_client_ca` results in using the CA names from the
first call and the CA name from the second call.
def test_set_and_add_client_ca(self):
    '\n        A call to `Context.set_client_ca_list` followed by a call to\n        `Context.add_client_ca` results in using the CA names from the\n        first call and the CA name from the second call.\n        '
    cacert = load_certificate(FILETYPE_PEM, root_cert_pem)
    secert = load_certificate(FILETYPE_PEM, server_cert_pem)
    clcert = load_certificate(FILETYPE_PEM, server_cert_pem)
    cadesc = cacert.get_subject()
    sedesc = secert.get_subject()
    cldesc = clcert.get_subject()

    def mixed_set_add_ca(ctx):
        ctx.set_client_ca_list([cadesc, sedesc])
        ctx.add_client_ca(clcert)
        return [cadesc, sedesc, cldesc]
    self._check_client_ca_list(mixed_set_add_ca)