def test_keyboardInteractive(self):
        """
        Make sure that the client can authenticate with the keyboard
        interactive method.
        """
        self.authClient.ssh_USERAUTH_PK_OK_keyboard_interactive(
            NS(b'') + NS(b'') + NS(b'') + b'\x00\x00\x00\x01' +
            NS(b'Password: ') + b'\x00')
        self.assertEqual(
            self.authClient.transport.packets[-1],
            (userauth.MSG_USERAUTH_INFO_RESPONSE,
             b'\x00\x00\x00\x02' + NS(b'foo') + NS(b'foo')))

        Make sure that the client can authenticate with the keyboard
        interactive method.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_userauth.py