mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Change the generator used for the test.
This commit is contained in:
parent
26f38f98de
commit
5322ae7839
1 changed files with 2 additions and 1 deletions
|
@ -100,9 +100,10 @@ class TestLSBSet(unittest.TestCase):
|
||||||
def test_with_too_long_message(self):
|
def test_with_too_long_message(self):
|
||||||
with open("./tests/sample-files/lorem_ipsum.txt") as f:
|
with open("./tests/sample-files/lorem_ipsum.txt") as f:
|
||||||
message = f.read()
|
message = f.read()
|
||||||
|
message += message*2
|
||||||
with self.assertRaises(Exception):
|
with self.assertRaises(Exception):
|
||||||
lsbset.hide("./tests/sample-files/Lenna.png", message,
|
lsbset.hide("./tests/sample-files/Lenna.png", message,
|
||||||
generators.eratosthenes())
|
generators.identity())
|
||||||
|
|
||||||
def test_hide_and_reveal_with_bad_generator(self):
|
def test_hide_and_reveal_with_bad_generator(self):
|
||||||
message_to_hide = "Hello World!"
|
message_to_hide = "Hello World!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue