Bug fix: forgot to write the results in a file.

This commit is contained in:
Cédric Bonhomme 2016-04-13 08:11:12 +02:00
parent f47cf3ae51
commit 655d211dc0
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D

View file

@ -57,6 +57,10 @@ class TestSLSB(unittest.TestCase):
with open("./examples/lorem_ipsum.txt") as f:
message = f.read()
secret = slsb.hide("./examples/pictures/Lenna.png", message)
secret.save("./image.png")
clear_message = slsb.reveal("./image.png")
self.assertEqual(message, clear_message)
def test_with_too_long_message(self):
with open("./examples/lorem_ipsum.txt") as f: