diff options
| author | Adam Janovsky | 2022-01-29 10:56:35 +0100 |
|---|---|---|
| committer | Adam Janovsky | 2022-01-29 10:56:35 +0100 |
| commit | bb2bfcd5dfd2a6ed5d136d8dc03d7a8aa48a7b34 (patch) | |
| tree | e13d573b8bc8553365321fc59185d2599872a975 /tests/test_fips_mip.py | |
| parent | 1267e35e85843953aceadda2ab206979757f14e2 (diff) | |
| parent | fdeaa61d1e62f1d23adc001b57c32d11df07fc4a (diff) | |
| download | sec-certs-bb2bfcd5dfd2a6ed5d136d8dc03d7a8aa48a7b34.tar.gz sec-certs-bb2bfcd5dfd2a6ed5d136d8dc03d7a8aa48a7b34.tar.zst sec-certs-bb2bfcd5dfd2a6ed5d136d8dc03d7a8aa48a7b34.zip | |
Merge branch 'dev' into dependency-analysis
Diffstat (limited to 'tests/test_fips_mip.py')
| -rw-r--r-- | tests/test_fips_mip.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_fips_mip.py b/tests/test_fips_mip.py new file mode 100644 index 00000000..82c7ead1 --- /dev/null +++ b/tests/test_fips_mip.py @@ -0,0 +1,24 @@ +from pathlib import Path +from typing import ClassVar +from unittest import TestCase + +from sec_certs.dataset.fips_mip import MIPDataset +from sec_certs.sample.fips_mip import MIPSnapshot + + +class TestFIPSMIP(TestCase): + test_data_dir: ClassVar[Path] = Path(__file__).parent / "data" / "test_fips_mip" + test_data_dump: ClassVar[Path] = test_data_dir / "fips_mip_2021-02-19T06+01:00.html" + + def test_from_dumps(self): + dset = MIPDataset.from_dumps(self.test_data_dir) + self.assertIsNotNone(dset) + self.assertEqual(len(dset), 3) + + def test_from_dump(self): + snap = MIPSnapshot.from_dump(self.test_data_dump) + self.assertIsNotNone(snap) + + def test_from_web(self): + snap = MIPSnapshot.from_web() + self.assertIsNotNone(snap) |
