'L{changePassPhrase} allows a user to change the passphrase of a private
key by providing both old and new passphrases without prompting.'

def test_changePassphraseWithBoth(self):

    filename = self.mktemp()
    FilePath(filename).setContent(privateRSA_openssh_encrypted)
    changePassPhrase({'filename': filename, 'pass': 'encrypted', 'newpass': 'newencrypt'})
    self.assertEqual(self.stdout.getvalue().strip('\n'), 'Your    identification    has    been    saved    with    the    new    passphrase.')
    self.assertNotEqual(privateRSA_openssh_encrypted, FilePath(filename).getContent())
