'A call to :py:obj:`Context.set_client_ca_list` followed by a call to
:py:obj:`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):

    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)
