()
| 27 | |
| 28 | |
| 29 | def test_ubuntu_usn(): |
| 30 | database = os.path.join(TEST_DIR, "database-all.json.bz2") |
| 31 | with open(database, "rb") as f: |
| 32 | raw_data = f.read() |
| 33 | db = json.loads(bz2.decompress(raw_data)) |
| 34 | advisories = UbuntuUSNImporter().to_advisories(db) |
| 35 | expected_file = os.path.join(TEST_DIR, f"ubuntu-usn-expected.json") |
| 36 | result = [data.to_dict() for data in list(advisories)] |
| 37 | util_tests.check_results_against_json(result, expected_file) |
nothing calls this directly
no test coverage detected