':py:obj:`crypto.load_privatekey` should raise an error when the passphrase
provided by the callback is too long, not silently truncate it.'

def test_load_privatekey_passphraseCallbackLength(self):

    def cb(ignored):
        return ('a' * 1025)
    self.assertRaises(ValueError, load_privatekey, FILETYPE_PEM, encryptedPrivateKeyPEM, cb)
