This commit is contained in:
2026-02-04 12:45:35 -05:00
parent 0a27b763f7
commit 700ea8d6a4
51 changed files with 4715 additions and 2904 deletions
+14
View File
@@ -0,0 +1,14 @@
from hbd.udp import parse_message
from hbd.proto import dicttos
def test_parse_message_uncompressed():
raw = dicttos('HTB', {'name': 'host', 'interval': 1})
m = parse_message(raw)
assert m['ID'].startswith('HTB')
def test_parse_message_compressed():
raw = dicttos('ACK', {'time': 1}, compress=True)
m = parse_message(raw)
assert 'ID' in m