@@ -18,7 +18,7 @@ def utc_timestamp():
1818class TestJWT (unittest .TestCase ):
1919
2020 def setUp (self ):
21- self .payload = {"iss" : "jeff" , "exp" : utc_timestamp () + 1 ,
21+ self .payload = {"iss" : "jeff" , "exp" : utc_timestamp () + 10 ,
2222 "claim" : "insanity" }
2323
2424 def test_encode_decode (self ):
@@ -320,7 +320,7 @@ def test_encode_decode_with_rsa_sha256(self):
320320 try :
321321 from Crypto .PublicKey import RSA
322322
323- # RSA -formatted key
323+ # PEM -formatted RSA key
324324 with open ('tests/testkey_rsa' , 'r' ) as rsa_priv_file :
325325 priv_rsakey = RSA .importKey (rsa_priv_file .read ())
326326 jwt_message = jwt .encode (self .payload , priv_rsakey ,
@@ -353,7 +353,7 @@ def test_encode_decode_with_rsa_sha384(self):
353353 try :
354354 from Crypto .PublicKey import RSA
355355
356- # RSA -formatted key
356+ # PEM -formatted RSA key
357357 with open ('tests/testkey_rsa' , 'r' ) as rsa_priv_file :
358358 priv_rsakey = RSA .importKey (rsa_priv_file .read ())
359359 jwt_message = jwt .encode (self .payload , priv_rsakey ,
@@ -385,7 +385,7 @@ def test_encode_decode_with_rsa_sha512(self):
385385 try :
386386 from Crypto .PublicKey import RSA
387387
388- # RSA -formatted key
388+ # PEM -formatted RSA key
389389 with open ('tests/testkey_rsa' , 'r' ) as rsa_priv_file :
390390 priv_rsakey = RSA .importKey (rsa_priv_file .read ())
391391 jwt_message = jwt .encode (self .payload , priv_rsakey ,
@@ -413,7 +413,7 @@ def test_encode_decode_with_rsa_sha512(self):
413413 except ImportError :
414414 pass
415415
416- def test_crypto_related_signing_methods (self ):
416+ def test_rsa_related_signing_methods (self ):
417417 try :
418418 import Crypto
419419 self .assertTrue ('RS256' in jwt .signing_methods )
@@ -424,7 +424,7 @@ def test_crypto_related_signing_methods(self):
424424 self .assertFalse ('RS384' in jwt .signing_methods )
425425 self .assertFalse ('RS512' in jwt .signing_methods )
426426
427- def test_crypto_related_verify_methods (self ):
427+ def test_rsa_related_verify_methods (self ):
428428 try :
429429 import Crypto
430430 self .assertTrue ('RS256' in jwt .verify_methods )
@@ -435,7 +435,7 @@ def test_crypto_related_verify_methods(self):
435435 self .assertFalse ('RS384' in jwt .verify_methods )
436436 self .assertFalse ('RS512' in jwt .verify_methods )
437437
438- def test_crypto_related_key_preparation_methods (self ):
438+ def test_rsa_related_key_preparation_methods (self ):
439439 try :
440440 import Crypto
441441 self .assertTrue ('RS256' in jwt .prepare_key_methods )
0 commit comments