def test__raises_when_inner_encapsulation_is_not_bson(self):
self.write_secret()
payload = fernet_encrypt_psk(compress(b"\n\n"), raw=True)
packet = _make_beacon_payload(payload=payload)
with ExpectedException(
InvalidBeaconingPacket, ".*beacon payload is not BSON.*"):
read_beacon_payload(packet)
评论列表
文章目录