'Get the password using
L{twisted.conch.client.default.SSHUserAuthClient.getPassword}
using a different prompt.'

def test_getPasswordPrompt(self):

    options = ConchOptions()
    client = SSHUserAuthClient('user', options, None)
    prompt = 'Give    up    your    password'
    def getpass(p):
        self.assertEqual(p, nativeString(prompt))
        return 'bad    password'
    self.patch(default.getpass, 'getpass', getpass)
    d = client.getPassword(prompt)
    d.addCallback(self.assertEqual, 'bad    password')
    return d
