'If C{SSHUserAuthClient} gets a MSG_USERAUTH_PK_OK packet when it\'s not
expecting it, it should fail the current authentication and move on to
the next type.'

def test_USERAUTH_PK_OK_unknown_method(self):

    self.authClient.lastAuth = 'unknown'
    self.authClient.transport.packets = []
    self.authClient.ssh_USERAUTH_PK_OK('')
    self.assertEqual(self.authClient.transport.packets, [(userauth.MSG_USERAUTH_REQUEST, ((NS('foo') + NS('nancy')) + NS('none')))])
