#NEWLINE# def test_check_issuer_when_valid( self , jwt ) : #NEWLINE# #INDENT# issuer = 'urn:foo' #NEWLINE# payload = { #NEWLINE# #INDENT# 'some' : 'payload' , #NEWLINE# 'iss' : 'urn:foo' , #NEWLINE# #UNINDENT# } #NEWLINE# token = jwt . encode ( payload , 'secret' ) #NEWLINE# jwt . decode ( token , 'secret' , issuer = issuer )