From 2c577466c35d4925ec966cef4d695f52206fe322 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Mon, 27 May 2013 09:14:38 +0000 Subject: [PATCH] Add two helpful debug statements, remove two superfluous asserts from unittest. --- tests/test_gnupg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py index 9e8908f..f08c863 100644 --- a/tests/test_gnupg.py +++ b/tests/test_gnupg.py @@ -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"""