You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

test_stegano.py 227 B

5 vuotta sitten
123456789
  1. import stegano
  2. def test_message_conversion():
  3. message = b"I love you\ngarbage"
  4. encoded = list(stegano.get_bitstream(message))
  5. decoded = bytes(stegano.parse_bitstream(encoded))
  6. assert decoded == b"I love you"