#NEWLINE# def setup_func( ) : #NEWLINE# #INDENT# pubnub_pam . grant ( channel = channel_pam , read = True , write = True , ttl = 144000 ) #NEWLINE# for i in range ( 0 , 20 ) : #NEWLINE# #INDENT# msg = rand ( ( 'message-' + str ( i ) ) ) #NEWLINE# messages . append ( msg ) #NEWLINE# print ( pubnub . publish ( channel = channel , message = msg ) ) #NEWLINE# print ( pubnub_pam . publish ( channel = channel_pam , message = msg ) )