'If the password is not specified, L{SSHCommandClientEndpoint} doesn\'t
try it as an authentication mechanism.'

def test_skipPasswordAuthentication(self):

    endpoint = SSHCommandClientEndpoint.newConnection(self.reactor, '/bin/ls    -l', self.user, self.hostname, self.port, knownHosts=self.knownHosts, ui=FixedResponseUI(False))
    factory = Factory()
    factory.protocol = Protocol
    connected = endpoint.connect(factory)
    (server, client, pump) = self.connectedServerAndClient(self.factory, self.reactor.tcpClients[0][2])
    pump.pump()
    f = self.failureResultOf(connected)
    f.trap(AuthenticationFailed)
    self.assertTrue(client.transport.disconnecting)
