diff options
| author | J08nY | 2022-07-11 19:47:31 +0200 |
|---|---|---|
| committer | J08nY | 2022-07-11 19:47:31 +0200 |
| commit | 52ed539690da1df3445f95d44de04ae208744ea3 (patch) | |
| tree | 7755eb1ad87f88f169f8572c622e4df4da03cf1e /tests/test_fips_oop.py | |
| parent | 68b5ed3c888d3a21d64c8a1aeaa8f4e56bf051f6 (diff) | |
| download | sec-certs-52ed539690da1df3445f95d44de04ae208744ea3.tar.gz sec-certs-52ed539690da1df3445f95d44de04ae208744ea3.tar.zst sec-certs-52ed539690da1df3445f95d44de04ae208744ea3.zip | |
FIPS: Extract ST metadata and store it.
Diffstat (limited to 'tests/test_fips_oop.py')
| -rw-r--r-- | tests/test_fips_oop.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |
