fix calls to openssl properly now. Only append \n to stdin when decoding. Updated the test slightly, also.

This commit is contained in:
Chris Behrens
2011-05-27 06:56:50 +00:00
parent 8d7d8b686c
commit 5aa38c4153

View File

@@ -595,6 +595,7 @@ class XenAPIDiffieHellmanTestCase(test.TestCase):
def test_encryption(self):
msg = "This is a top-secret message"
enc = self.alice.encrypt(msg)
self.assertFalse(enc.endswith('\n'))
dec = self.bob.decrypt(enc)
self.assertEquals(dec, msg)