module documentation
Class KeyGenTests Tests for various functions used to implement the ckeygen script.
Function makeGetpass Return a callable to patch getpass.getpass. Yields a passphrase each time called. Use case is to provide an old, then new passphrase(s) as if requested interactively.
def makeGetpass(*passphrases): (source)

Return a callable to patch getpass.getpass. Yields a passphrase each time called. Use case is to provide an old, then new passphrase(s) as if requested interactively.

Parameters
*passphrasesThe list of passphrases returned, one per each call.
Returns
A callable to patch getpass.getpass.