'Verify that the protocol will complain if we attempt to renegotiate TLS,
which we don\'t support.'

def test_startTooManyTimes(self):

    (cli, svr, p) = connectedServerAndClient(ServerClass=SecurableProto, ClientClass=SecurableProto)
    okc = OKCert()
    svr.certFactory = (lambda : okc)
    cli.callRemote(amp.StartTLS, tls_localCertificate=okc, tls_verifyAuthorities=[PretendRemoteCertificateAuthority()])
    p.flush()
    cli.noPeerCertificate = True
    self.assertRaises(amp.OnlyOneTLS, cli.callRemote, amp.StartTLS, tls_localCertificate=okc, tls_verifyAuthorities=[PretendRemoteCertificateAuthority()])
