'When provided with correct password authentication information, the
server should respond by sending a MSG_USERAUTH_SUCCESS message with
no other data.
See RFC 4252, Section 5.1.'

def test_successfulPasswordAuthentication(self):

    packet = ''.join([NS('foo'), NS('none'), NS('password'), chr(0), NS('foo')])
    d = self.authServer.ssh_USERAUTH_REQUEST(packet)
    def check(ignored):
        self.assertEqual(self.authServer.transport.packets, [(userauth.MSG_USERAUTH_SUCCESS, '')])
    return d.addCallback(check)
