mirror of
https://github.com/mandiant/capa.git
synced 2025-12-21 23:00:29 -08:00
tests: json: fix address representation
This commit is contained in:
@@ -441,7 +441,7 @@ def test_json_meta(capsys):
|
||||
std = capsys.readouterr()
|
||||
std_json = json.loads(std.out)
|
||||
|
||||
assert ["absolute", 0x10001010] in map(lambda f: f["address"], std_json["meta"]["analysis"]["layout"]["functions"])
|
||||
assert {"type": "absolute", "value": 0x10001010} in list(map(lambda f: f["address"], std_json["meta"]["analysis"]["layout"]["functions"]))
|
||||
|
||||
for addr, info in std_json["meta"]["analysis"]["layout"]["functions"]:
|
||||
if addr == ["absolute", 0x10001010]:
|
||||
|
||||
Reference in New Issue
Block a user