Merge branch 'fix/94-encrypt-from-stream' into develop

master 2.0.1
Isis Lovecruft 2015-03-13 03:48:49 +00:00
commit cf4d3efd8d
No known key found for this signature in database
GPG Key ID: 18C16EC5F9F1D673
1 changed files with 2 additions and 2 deletions

View File

@ -1182,12 +1182,12 @@ know, maybe you shouldn't be doing it in the first place.
"""Test that ``encrypt(open('foo'), ...)`` is successful."""
message_filename = os.path.join(_files, 'cypherpunk_manifesto')
with open(message_filename, 'rb') as f:
output = os.path.join(self.gpg.homedir, 'test-encryption-from-filehandle.gpg')
kwargs = dict(passphrase='speedtest',
symmetric=True,
cipher_algo='AES256',
armor=False,
encrypt=False,
output='/tmp/purernd.enc.gnupg')
output=output)
encrypted = self.gpg.encrypt(f, None, **kwargs)
self.assertTrue(encrypted.ok)
self.assertGreater(len(encrypted.data), 0)