MCPcopy Create free account
hub / github.com/MearaY/StegaPy / test_roundtrip_basic

Method test_roundtrip_basic

tests/test_e2e.py:49–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 return _make_stegapy(p, cfg)
48
49 def test_roundtrip_basic(self):
50 cover = _cover_bytes()
51 msg = b"Hello StegaPy!"
52 sp = self._sp(use_compression=False)
53 stego = sp.embed_data(msg, "msg.txt", cover, "cover.png", "stego.png")
54 _, out = sp.extract_data(stego, "stego.png")
55 assert out == msg
56
57 def test_roundtrip_with_compression(self):
58 cover = _cover_bytes(512, 512)

Callers

nothing calls this directly

Calls 4

_spMethod · 0.95
_cover_bytesFunction · 0.85
embed_dataMethod · 0.45
extract_dataMethod · 0.45

Tested by

no test coverage detected