#NEWLINE# def test_fail_audience_missing( self ) : #NEWLINE# #INDENT# payload = utils . jwt_payload_handler ( self . user ) #NEWLINE# del payload [ 'aud' ] #NEWLINE# token = utils . jwt_encode_handler ( payload ) #NEWLINE# with self . assertRaises ( jwt . exceptions . MissingRequiredClaimError ) : #NEWLINE# #INDENT# utils . jwt_decode_handler ( token )