summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
authorPaul Howarth <paul@city-fan.org>2022-03-21 09:28:57 +0000
committerPaul Howarth <paul@city-fan.org>2022-03-21 09:28:57 +0000
commitc5b1714f88cb03d6802ca3c98f3b7f65bc7e4fd5 (patch)
tree027aab17d10ebce1318a3fa238484020b6cd3f82 /tests/util.py
parentd4ff3dd430f6358b98dd104a4eb51bbc2a7ce844 (diff)
blacken
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/util.py b/tests/util.py
index 69df87f5..ce96dc88 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -155,8 +155,7 @@ def sha1_signing_unsupported():
not supported by the backend.
"""
private_key = rsa.generate_private_key(
- public_exponent=65537,
- key_size=2048,
+ public_exponent=65537, key_size=2048
)
message = b"Some dummy text"
try:
@@ -164,11 +163,10 @@ def sha1_signing_unsupported():
message,
padding.PSS(
mgf=padding.MGF1(hashes.SHA1()),
- salt_length=padding.PSS.MAX_LENGTH
+ salt_length=padding.PSS.MAX_LENGTH,
),
- hashes.SHA1()
+ hashes.SHA1(),
)
return False
except UnsupportedAlgorithm as e:
return e._reason is _Reasons.UNSUPPORTED_HASH
-