'If there are no more available user authentication messages,
the SSHUserAuthClient should disconnect with code
DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE.'

def test_disconnectIfNoMoreAuthentication(self):

    self.authClient.ssh_USERAUTH_FAILURE((NS('password') + '\x00'))
    self.authClient.ssh_USERAUTH_FAILURE((NS('password') + '\xff'))
    self.assertEqual(self.authClient.transport.packets[(-1)], (transport.MSG_DISCONNECT, (('\x00\x00\x00\x0e' + NS('no    more    authentication    methods    available')) + '\x00\x00\x00\x00')))
