def makeGetpass(*passphrases):
 passphrases = iter(passphrases)
 def fakeGetpass(_):
  return next(passphrases)
 return fakeGetpass

def makeGetpass ( * passphrases ) : passphrases = iter ( passphrases ) def fakeGetpass ( _ ) : return next ( passphrases ) return fakeGetpass
return a callable to patch c{getpass .