'When provided with invalid authentication details, the server should
respond by sending a MSG_USERAUTH_FAILURE message which states whether
the authentication was partially successful, and provides other, open
options for authentication.
See RFC 4252, Section 5.1.'

def test_failedPasswordAuthentication(self):

    packet = ''.join([NS('foo'), NS('none'), NS('password'), chr(0), NS('bar')])
    self.authServer.clock = task.Clock()
    d = self.authServer.ssh_USERAUTH_REQUEST(packet)
    self.assertEqual(self.authServer.transport.packets, [])
    self.authServer.clock.advance(2)
    return d.addCallback(self._checkFailed)
