'If the list passed to :py:obj:`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):

    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)
