From c5b1714f88cb03d6802ca3c98f3b7f65bc7e4fd5 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 21 Mar 2022 09:28:57 +0000 Subject: blacken --- tests/test_pkey.py | 1 + tests/test_transport.py | 1 + tests/util.py | 8 +++----- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_pkey.py b/tests/test_pkey.py index 6eac35a0..e0d1b0ac 100644 --- a/tests/test_pkey.py +++ b/tests/test_pkey.py @@ -140,6 +140,7 @@ x1234 = b"\x01\x02\x03\x04" TEST_KEY_BYTESTR_2 = "\x00\x00\x00\x07ssh-rsa\x00\x00\x00\x01#\x00\x00\x00\x81\x00\xd3\x8fV\xea\x07\x85\xa6k%\x8d<\x1f\xbc\x8dT\x98\xa5\x96$\xf3E#\xbe>\xbc\xd2\x93\x93\x87f\xceD\x18\xdb \x0c\xb3\xa1a\x96\xf8e#\xcc\xacS\x8a#\xefVlE\x83\x1epv\xc1o\x17M\xef\xdf\x89DUXL\xa6\x8b\xaa<\x06\x10\xd7\x93w\xec\xaf\xe2\xaf\x95\xd8\xfb\xd9\xbfw\xcb\x9f0)#y{\x10\x90\xaa\x85l\tPru\x8c\t\x19\xce\xa0\xf1\xd2\xdc\x8e/\x8b\xa8f\x9c0\xdey\x84\xd2F\xf7\xcbmm\x1f\x87" # noqa TEST_KEY_BYTESTR_3 = "\x00\x00\x00\x07ssh-rsa\x00\x00\x00\x01#\x00\x00\x00\x00ӏV\x07k%<\x1fT$E#>ғfD\x18 \x0cae#̬S#VlE\x1epvo\x17M߉DUXL<\x06\x10דw\u2bd5ٿw˟0)#y{\x10l\tPru\t\x19Π\u070e/f0yFmm\x1f" # noqa + class KeyTest(unittest.TestCase): def setUp(self): pass diff --git a/tests/test_transport.py b/tests/test_transport.py index 8124f129..b9daec60 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -81,6 +81,7 @@ requires_sha1_signing = unittest.skipIf( sha1_signing_unsupported(), "SHA-1 signing not supported" ) + class NullServer(ServerInterface): paranoid_did_password = False paranoid_did_public_key = False 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 - -- cgit v1.2.3