def test_mutated_ca_list(self):
    '\n        If the list passed to `Context.set_client_ca_list` is mutated\n        afterwards, this does not affect the list of CA names sent to the\n        client.\n        '
    cacert = load_certificate(FILETYPE_PEM, root_cert_pem)
    secert = load_certificate(FILETYPE_PEM, server_cert_pem)
    cadesc = cacert.get_subject()
    sedesc = secert.get_subject()

    def mutated_ca(ctx):
        L = [cadesc]
        ctx.set_client_ca_list([cadesc])
        L.append(sedesc)
        return [cadesc]
    self._check_client_ca_list(mutated_ca)
If the list passed to `Context.set_client_ca_list` is mutated
afterwards, this does not affect the list of CA names sent to the
client.
def test_mutated_ca_list(self):
    '\n        If the list passed to `Context.set_client_ca_list` is mutated\n        afterwards, this does not affect the list of CA names sent to the\n        client.\n        '
    cacert = load_certificate(FILETYPE_PEM, root_cert_pem)
    secert = load_certificate(FILETYPE_PEM, server_cert_pem)
    cadesc = cacert.get_subject()
    sedesc = secert.get_subject()

    def mutated_ca(ctx):
        L = [cadesc]
        ctx.set_client_ca_list([cadesc])
        L.append(sedesc)
        return [cadesc]
    self._check_client_ca_list(mutated_ca)