#NEWLINE# def test_fail_issuer_wrong( self ) : #NEWLINE# #INDENT# payload = utils . jwt_payload_handler ( self . user ) #NEWLINE# payload [ 'iss' ] = 'example2.com' #NEWLINE# token = utils . jwt_encode_handler ( payload ) #NEWLINE# with self . assertRaises ( jwt . exceptions . InvalidIssuerError ) : #NEWLINE# #INDENT# utils . jwt_decode_handler ( payload )