diff options
| author | Adam Janovsky | 2023-04-15 22:19:04 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2023-04-15 22:19:04 +0200 |
| commit | 9030f9990da8cdd32f1ef07a575460fdb83744b9 (patch) | |
| tree | c450d63aafbe76309d7894abcf5173d16cb1546e | |
| parent | d3d470ed408fde3638d26b49a7f6a403fe57c7e9 (diff) | |
| download | sec-certs-9030f9990da8cdd32f1ef07a575460fdb83744b9.tar.gz sec-certs-9030f9990da8cdd32f1ef07a575460fdb83744b9.tar.zst sec-certs-9030f9990da8cdd32f1ef07a575460fdb83744b9.zip | |
fix cpe tests again
| -rw-r--r-- | tests/test_cpe.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_cpe.py b/tests/test_cpe.py index 7a4362eb..bd355576 100644 --- a/tests/test_cpe.py +++ b/tests/test_cpe.py @@ -64,11 +64,10 @@ def test_cpe_parsing(): assert cpe.version == tpl[2] -def test_cpe_from_to_dict(cpe_dict): - cpe = CPE.from_dict(cpe_dict) - ret = cpe.to_dict() - assert cpe_dict == ret - other_cpe = CPE.from_dict(ret) +def test_cpe_from_to_dict(cpe_dataset: CPEDataset): + cpe = cpe_dataset["cpe:2.3:a:ibm:security_key_lifecycle_manager:2.6.0.1:*:*:*:*:*:*:*"] + dct = cpe.to_dict() + other_cpe = CPE.from_dict(dct) assert cpe == other_cpe |
