Update Python rawBytes parsing (#1119)

*  data updates to capture multiple rawBytes packets associated with serde updates from late this past month

---------

Co-authored-by: Matt <matthew.morley.ca@gmail.com>
This commit is contained in:
Chris Gerth
2024-01-06 06:17:06 -06:00
committed by GitHub
parent 4068025572
commit 851f2e4e68
5 changed files with 138 additions and 269 deletions

View File

@@ -6,6 +6,9 @@ from data import rawBytes3
from data import rawBytes4
from data import rawBytes5
from data import rawBytes6
from data import rawBytes7
from data import rawBytes8
from data import rawBytes9
def setupCommon(bytesIn):
@@ -28,7 +31,7 @@ def test_byteParse2():
def test_byteParse3():
res = setupCommon(rawBytes3)
assert len(res.getTargets()) == 0
assert len(res.getTargets()) >= 4
def test_byteParse4():
@@ -38,9 +41,24 @@ def test_byteParse4():
def test_byteParse5():
res = setupCommon(rawBytes5)
assert len(res.getTargets()) == 1
assert len(res.getTargets()) == 2
def test_byteParse6():
res = setupCommon(rawBytes6)
assert len(res.getTargets()) > 6
# assert len(res.getTargets()) >= 0
def test_byteParse7():
res = setupCommon(rawBytes7)
# assert len(res.getTargets()) >= 0
def test_byteParse8():
res = setupCommon(rawBytes8)
# assert len(res.getTargets()) >= 0
def test_byteParse9():
res = setupCommon(rawBytes9)
# assert len(res.getTargets()) >= 0