Example #1
0
 def test_with_unknown_generator(self):
     message_to_hide = "Hello World!"
     with self.assertRaises(AttributeError):
         secret = lsbset.hide(
             "./tests/sample-files/Lenna.png",
             message_to_hide,
             generators.eratosthene(),
         )
Example #2
0
 def test_with_unknown_generator(self):
     message_to_hide = "Hello World!"
     with self.assertRaises(AttributeError):
         secret = lsbset.hide("./tests/sample-files/Lenna.png",
                                 message_to_hide, generators.eratosthene())