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.
 
 
 
 
 
 

16 lines
364 B

  1. import stegano
  2. def test_by_chunks():
  3. x = [1, 2, 3, 4, 5, 6]
  4. chunks = stegano.by_chunk(x, 3)
  5. assert list(chunks) == [[1, 2, 3], [4, 5, 6]]
  6. def test_message_conversion():
  7. message = b"I love you\ngarbage"
  8. encoded = list(stegano.get_bitstream(message))
  9. decoded = bytes(stegano.parse_bitstream(encoded))
  10. assert decoded == b"I love you"