Change unittest for symmetric encryption to include correct boolean options.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-05-27 09:30:05 +00:00
parent 690b0efc76
commit fa57bc6158
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ authentication."""
msg = """If you have something that you don't want anyone to know,
maybe you shouldn't be doing it in the first place. - Eric Schmidt, CEO
of Google"""
encrypted = str(self.gpg.encrypt(msg, None, passphrase='quiscustodiet',
encrypted = str(self.gpg.encrypt(msg, passphrase='quiscustodiet',
symmetric=True, encrypt=False))
decrypted = self.gpg.decrypt(encrypted, passphrase='quiscustodiet')
self.assertEqual(msg, str(decrypted.data))