tests updated

This commit is contained in:
Aayush Goel 2023-10-16 16:35:30 +05:30
parent 23ecb248a5
commit db32d90480
2 changed files with 2 additions and 2 deletions

View file

@ -17,6 +17,7 @@ a = Analysis(
# when invoking pyinstaller from the project root,
# this gets invoked from the directory of the spec file,
# i.e. ./.github/pyinstaller
("../../assets", "assets"),
("../../rules", "rules"),
("../../sigs", "sigs"),
("../../cache", "cache"),

View file

@ -1026,8 +1026,7 @@ def test_translate_com_features():
capa.features.common.Bytes(b"[\x94\x18\xe0\x86\xaa\x08@\x9b\xd4gw\xa1\xe4\x0c\x11", f"IID_{com_name} as bytes"),
capa.features.common.StringFactory("e018945b-aa86-4008-9bd4-6777a1e40c11", f"IID_{com_name} as GUID string"),
]
for child in r.statement.get_children():
assert child in com_features
assert set(com_features) == set(r.statement.get_children())
def test_invalid_com_features():