fixup lint errors

This commit is contained in:
Roman Zeyde
2016-03-12 21:06:57 +02:00
parent 716dc82312
commit f056f1fac5
3 changed files with 9 additions and 5 deletions

View File

@@ -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