#NEWLINE# def test_check_audience_in_array_when_valid( self , jwt ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'some' : 'payload' , #NEWLINE# 'aud' : [ 'urn:me' , 'urn:someone-else' ] , #NEWLINE# #UNINDENT# } #NEWLINE# token = jwt . encode ( payload , 'secret' ) #NEWLINE# jwt . decode ( token , 'secret' , audience = 'urn:me' )