aboutsummaryrefslogtreecommitdiff
path: root/tests/x509
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2023-12-23 10:55:21 -0500
committerGitHub <noreply@github.com>2023-12-23 12:55:21 -0300
commiteb06a6a83d2372c59ba32286ff0c059a905b9aab (patch)
tree8661fe6e2472e082190c48e4d0ffe93f4219e231 /tests/x509
parent957e65e48ef7ff3b7009b23ebe59fe51075d2388 (diff)
downloadpyca-cryptography-eb06a6a83d2372c59ba32286ff0c059a905b9aab.zip
pyca-cryptography-eb06a6a83d2372c59ba32286ff0c059a905b9aab.tar.gz
pyca-cryptography-eb06a6a83d2372c59ba32286ff0c059a905b9aab.tar.bz2
Added a benchmark for x.509 verification (#10042)
Diffstat (limited to 'tests/x509')
-rw-r--r--tests/x509/verification/test_limbo.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/x509/verification/test_limbo.py b/tests/x509/verification/test_limbo.py
index 2d2f1fd..e26ebe6 100644
--- a/tests/x509/verification/test_limbo.py
+++ b/tests/x509/verification/test_limbo.py
@@ -113,11 +113,13 @@ def _limbo_testcase(id_, testcase):
max_chain_depth = testcase["max_chain_depth"]
should_pass = testcase["expected_result"] == "SUCCESS"
- verifier = PolicyBuilder(
- time=validation_time,
- store=Store(trusted_certs),
- max_chain_depth=max_chain_depth,
- ).build_server_verifier(peer_name)
+ verifier = (
+ PolicyBuilder()
+ .time(validation_time)
+ .store(Store(trusted_certs))
+ .max_chain_depth(max_chain_depth)
+ .build_server_verifier(peer_name)
+ )
if should_pass:
built_chain = verifier.verify(