Add two helpful debug statements, remove two superfluous asserts from unittest.
parent
a9ea5a1e48
commit
2c577466c3
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue