@@ -19,7 +19,7 @@ def is_string(obj):
19
19
except TypeError :
20
20
return False
21
21
22
- #pylint: disable=R0912
22
+ #pylint: disable=R0912,too-many-locals,too-many-statements
23
23
def _setup (alg , priv_type , pub_type , exp , iat_skew , nbf , jti_size , keyless , expected ):
24
24
""" setup tests """
25
25
privk = None if keyless else priv_keys [alg ][priv_type ]
@@ -49,6 +49,7 @@ def jti_size_should_be_as_expected(self, claims):
49
49
expect (len (base64url_decode (claims ['jti' ]))).to_equal (jti_size )
50
50
51
51
class UniqueClaimsChecker (ClaimsChecker ):
52
+ """ Check JTIs in token are unique """
52
53
def jtis_should_be_unique (self , claims ):
53
54
""" Check jtis """
54
55
if jti_size or callable (privk ):
@@ -106,8 +107,10 @@ def topic(self, topic):
106
107
return jwt .process_jwt (sjwt )
107
108
108
109
class CheckClaims (UniqueClaimsChecker ):
110
+ """ Check claims """
109
111
pass
110
112
class CheckHeader (HeaderChecker ):
113
+ """ Check header """
111
114
pass
112
115
113
116
class VerifyJWTWithGeneratedKey (Vows .Context ):
@@ -128,8 +131,10 @@ def topic(self, topic):
128
131
129
132
if keyless and expected :
130
133
class CheckClaims (ClaimsChecker ):
134
+ """ Check claims """
131
135
pass
132
136
class CheckHeader (HeaderChecker ):
137
+ """ Check header """
133
138
pass
134
139
else :
135
140
def should_fail_to_verify (self , r ):
@@ -150,8 +155,10 @@ def topic(self, topic):
150
155
151
156
if expected :
152
157
class CheckClaims (ClaimsChecker ):
158
+ """ Check claims """
153
159
pass
154
160
class CheckHeader (HeaderChecker ):
161
+ """ Check header """
155
162
pass
156
163
else :
157
164
def should_fail_to_verify (self , r ):
0 commit comments