From 52ed539690da1df3445f95d44de04ae208744ea3 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 11 Jul 2022 19:47:31 +0200 Subject: FIPS: Extract ST metadata and store it. --- tests/test_fips_oop.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_fips_oop.py b/tests/test_fips_oop.py index 32e34c79..e07eb572 100644 --- a/tests/test_fips_oop.py +++ b/tests/test_fips_oop.py @@ -116,6 +116,11 @@ class TestFipsOOP(TestCase): dataset = _set_up_dataset(tmp_dir, certs) self.assertEqual(len(dataset.certs), len(certs), "Wrong number of parsed certs") + def test_metadata_extraction(self): + with TemporaryDirectory() as tmp_dir: + dst = _set_up_dataset_for_full(tmp_dir, ["3493"], self.cpe_dset_path, self.cve_dset_path) + self.assertIsNotNone(dst.certs[fips_dgst("3493")].pdf_data.st_metadata) + def test_connections_microsoft(self): certs = self.certs_to_parse["microsoft"] with TemporaryDirectory() as tmp_dir: -- cgit v1.3.1