#NEWLINE# def test_decode_should_raise_error_if_iat_required_but_not_present( self , jwt ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'some' : 'payload' , #NEWLINE# #UNINDENT# } #NEWLINE# token = jwt . encode ( exc , 'secret' ) #NEWLINE# with pytest . raises ( MissingRequiredClaimError ) as exc : #NEWLINE# #INDENT# jwt . decode ( token , 'secret' , options = { #NEWLINE# #INDENT# 'require_iat' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# assert ( exc . value . claim == 'iat' )