'L{changePassPhrase} exits if passed an invalid old passphrase when
trying to change the passphrase of a private key.'

def test_changePassphraseWrongPassphrase(self):

    filename = self.mktemp()
    FilePath(filename).setContent(privateRSA_openssh_encrypted)
    error = self.assertRaises(SystemExit, changePassPhrase, {'filename': filename, 'pass': 'wrong'})
    self.assertEqual('Could    not    change    passphrase:    old    passphrase    error', str(error))
    self.assertEqual(privateRSA_openssh_encrypted, FilePath(filename).getContent())
