aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_rules.py
diff options
context:
space:
mode:
authorJ08nY2022-07-05 16:04:28 +0200
committerJ08nY2022-07-05 19:12:58 +0200
commit0506b65d623b60237b297fc76fbc78884aa72386 (patch)
treea9d58b33c098026eba0ab77b3ee4c6eb5802023c /tests/test_rules.py
parentb705ec83a622cacb9444d86e7632c42c1ceb2c68 (diff)
downloadsec-certs-0506b65d623b60237b297fc76fbc78884aa72386.tar.gz
sec-certs-0506b65d623b60237b297fc76fbc78884aa72386.tar.zst
sec-certs-0506b65d623b60237b297fc76fbc78884aa72386.zip
Fix FIPS tests.
Diffstat (limited to 'tests/test_rules.py')
-rw-r--r--tests/test_rules.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_rules.py b/tests/test_rules.py
index ee718172..2ce991a0 100644
--- a/tests/test_rules.py
+++ b/tests/test_rules.py
@@ -1,9 +1,12 @@
from unittest import TestCase
-from sec_certs.cert_rules import cc_rules, fips_rules
+from sec_certs.cert_rules import cc_rules, fips_rules, rules
class TestRules(TestCase):
def test_rules(self):
assert "cc_cert_id" in cc_rules
assert "fips_cert_id" in fips_rules
+ for rule_group in rules:
+ if rule_group not in ("cc_rules", "fips_rules"):
+ assert rule_group in cc_rules.keys() or rule_group in fips_rules.keys()