'Check that callRemote raises an exception when called with a
L{amp.StartTLS}.'

def test_callRemoteError(self):

    (cli, svr, p) = connectedServerAndClient(ServerClass=SecurableProto, ClientClass=SecurableProto)
    okc = OKCert()
    svr.certFactory = (lambda : okc)
    return self.assertFailure(cli.callRemote(amp.StartTLS, tls_localCertificate=okc, tls_verifyAuthorities=[PretendRemoteCertificateAuthority()]), RuntimeError)
