mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-13 09:28:31 +02:00
Bug fix: forgot to write the results in a file.
This commit is contained in:
parent
f47cf3ae51
commit
655d211dc0
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ class TestSLSB(unittest.TestCase):
|
||||||
with open("./examples/lorem_ipsum.txt") as f:
|
with open("./examples/lorem_ipsum.txt") as f:
|
||||||
message = f.read()
|
message = f.read()
|
||||||
secret = slsb.hide("./examples/pictures/Lenna.png", message)
|
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):
|
def test_with_too_long_message(self):
|
||||||
with open("./examples/lorem_ipsum.txt") as f:
|
with open("./examples/lorem_ipsum.txt") as f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue