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

Function test_gentoo_import

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

Source from the content-addressed store, hash-verified

27
28
29def test_gentoo_import():
30 file = os.path.join(TEST_DIR, "glsa-201709-09.xml")
31 advisories = GentooImporter().process_file(file)
32 result = [adv.to_dict() for adv in advisories]
33 expected_file = os.path.join(TEST_DIR, "gentoo-expected.json")
34 util_tests.check_results_against_json(result, expected_file)

Callers

nothing calls this directly

Calls 3

GentooImporterClass · 0.90
process_fileMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected