mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 21:26:39 +08:00
fixup lint errors
This commit is contained in:
@@ -62,13 +62,13 @@ def test_sign_wrong():
|
||||
|
||||
|
||||
def test_sign_cancel():
|
||||
def cancel_signature(label, blob):
|
||||
def cancel_signature(label, blob): # pylint: disable=unused-argument
|
||||
raise IOError()
|
||||
|
||||
key = formats.import_public_key(NIST256_KEY)
|
||||
h = protocol.Handler(keys=[key], signer=cancel_signature)
|
||||
|
||||
assert h.handle(NIST256_SIGN_MSG) == protocol._fail()
|
||||
assert h.handle(NIST256_SIGN_MSG) == protocol.failure()
|
||||
|
||||
|
||||
ED25519_KEY = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFBdF2tjfSO8nLIi736is+f0erq28RTc7CkM11NZtTKR ssh://localhost' # nopep8
|
||||
|
||||
Reference in New Issue
Block a user