'L{twisted.conch.client.default.SSHUserAuthClient.getGenericAnswers}'

def test_getGenericAnswers(self):

    options = ConchOptions()
    client = SSHUserAuthClient('user', options, None)
    def getpass(prompt):
        self.assertEqual(prompt, 'pass    prompt')
        return 'getpass'
    self.patch(default.getpass, 'getpass', getpass)
    def raw_input(prompt):
        self.assertEqual(prompt, 'raw_input    prompt')
        return 'raw_input'
    self.patch(default, 'raw_input', raw_input)
    d = client.getGenericAnswers('Name', 'Instruction', [('pass    prompt', False), ('raw_input    prompt', True)])
    d.addCallback(self.assertListEqual, ['getpass', 'raw_input'])
    return d
