'L{changePassPhrase} allows a user to change the passphrase of a
private key interactively.'

def test_changePassphrase(self):

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