55"""
66
77import unittest
8- from sshpubkeys import *
8+ from sshpubkeys import SSHKey
99from .valid_keys import keys as list_of_valid_keys
1010from .valid_keys_rfc4716 import keys as list_of_valid_keys_rfc4716
1111from .invalid_keys import keys as list_of_invalid_keys
@@ -23,7 +23,7 @@ def test_none_to_constructor(self):
2323
2424class TestKeys (unittest .TestCase ):
2525
26- def check_key (self , pubkey , bits , fingerprint_md5 , fingerprint_sha256 , options , comment , ** kwargs ):
26+ def check_key (self , pubkey , bits , fingerprint_md5 , fingerprint_sha256 , options , comment , ** kwargs ): # pylint:disable=too-many-arguments
2727 """ Checks valid key """
2828 ssh = SSHKey (pubkey , ** kwargs )
2929 ssh .parse ()
@@ -72,9 +72,9 @@ def ch(option, expected_error):
7272
7373def loop_valid (keyset , prefix ):
7474 """ Loop over list of valid keys and dynamically create tests """
75- def ch (pubkey , bits , fingerprint_md5 , fingerprint_sha256 , options , comment , ** kwargs ):
75+ def ch (pubkey , bits , fingerprint_md5 , fingerprint_sha256 , options , comment , ** kwargs ): # pylint:disable=too-many-arguments
7676 return lambda self : self .check_key (pubkey , bits , fingerprint_md5 , fingerprint_sha256 , options , comment , ** kwargs )
77- for i , items in enumerate ( keyset ) :
77+ for items in keyset :
7878 modes = items .pop ()
7979 prefix_tmp = "%s_%s" % (prefix , items .pop ())
8080 for mode in modes :
@@ -94,7 +94,7 @@ def loop_invalid(keyset, prefix):
9494 """ Loop over list of invalid keys and dynamically create tests """
9595 def ch (pubkey , expected_error , ** kwargs ):
9696 return lambda self : self .check_fail (pubkey , expected_error , ** kwargs )
97- for i , items in enumerate ( keyset ) :
97+ for items in keyset :
9898 modes = items .pop ()
9999 prefix_tmp = "%s_%s" % (prefix , items .pop ())
100100 for mode in modes :
0 commit comments