Add two helpful debug statements, remove two superfluous asserts from unittest.

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

View File

@ -675,9 +675,9 @@ analysis of different kinds of data (temperature, humidity, etc.) coming from
a WSN while ensuring both end-to-end encryption and hop-by-hop
authentication."""
encrypted = str(gpg.encrypt(message, dijk))
log.debug("Plaintext: %s" % message)
log.debug("Encrypted: %s" % encrypted)
self.assertNotEqual(message, encrypted)
self.assertNotEqual(encrypted, '')
self.assertGreater(len(encrypted), 0)
def test_encryption_alt_encoding(self):
"""Test encryption with latin-1 encoding"""