'L{displayPublicKey} fails with a L{BadKeyError} when trying to decrypt
an encrypted key with the wrong password.'

def test_displayPublicKeyWrongPassphrase(self):

    filename = self.mktemp()
    FilePath(filename).setContent(privateRSA_openssh_encrypted)
    self.assertRaises(BadKeyError, displayPublicKey, {'filename': filename, 'pass': 'wrong'})
