def test_reset_ca_list(self):
    '\n        If called multiple times, only the X509Names passed to the final call\n        of `Context.set_client_ca_list` are used to configure the CA\n        names sent to the client.\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 changed_ca(ctx):
        ctx.set_client_ca_list([sedesc, cldesc])
        ctx.set_client_ca_list([cadesc])
        return [cadesc]
    self._check_client_ca_list(changed_ca)
If called multiple times, only the X509Names passed to the final call
of `Context.set_client_ca_list` are used to configure the CA
names sent to the client.
def test_reset_ca_list(self):
    '\n        If called multiple times, only the X509Names passed to the final call\n        of `Context.set_client_ca_list` are used to configure the CA\n        names sent to the client.\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 changed_ca(ctx):
        ctx.set_client_ca_list([sedesc, cldesc])
        ctx.set_client_ca_list([cadesc])
        return [cadesc]
    self._check_client_ca_list(changed_ca)