MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / test_xen_to_advisories

Function test_xen_to_advisories

vulnerabilities/tests/test_xen.py:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_xen_to_advisories():
24 with open(os.path.join(TEST_DATA, "xen_data.json")) as f:
25 raw_data = json.load(f)
26 advisories = XenImporter().to_advisories(raw_data)
27 result = [data.to_dict() for data in advisories]
28 expected_file = os.path.join(TEST_DATA, f"parse-advisory-xen-expected.json")
29 util_tests.check_results_against_json(result, expected_file)

Callers

nothing calls this directly

Calls 3

XenImporterClass · 0.90
to_advisoriesMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected