#NEWLINE# def test_conversations_grant( self ) : #NEWLINE# #INDENT# scat = AccessToken ( ACCOUNT_SID , SIGNING_KEY_SID , 'secret' ) #NEWLINE# scat . add_grant ( ConversationsGrant ( configuration_profile_sid = 'CP123' ) ) #NEWLINE# token = str ( scat ) #NEWLINE# assert_is_not_none ( token ) #NEWLINE# payload = decode ( token , 'secret' ) #NEWLINE# self . _validate_claims ( payload ) #NEWLINE# assert_equal ( 1 , len ( payload [ 'grants' ] ) ) #NEWLINE# assert_equal ( { #NEWLINE# #INDENT# 'configuration_profile_sid' : 'CP123' , #NEWLINE# #UNINDENT# } , payload [ 'grants' ] [ 'rtc' ] )