#NEWLINE# @ with_setup ( setup_func ) #NEWLINE# def test_1( ) : #NEWLINE# #INDENT# time . sleep ( 3 ) #NEWLINE# hresp = pubnub . history ( channel = channel , count = 20 ) #NEWLINE# hresp3 = pubnub_pam . history ( channel = channel_pam , count = 20 ) #NEWLINE# hresp4 = pubnub_pam . history ( channel = ( channel_pam + 'no_rw' ) , count = 20 ) #NEWLINE# assert ( hresp3 [ 0 ] == messages ) #NEWLINE# assert ( hresp3 [ 0 ] == messages ) #NEWLINE# assert ( hresp4 [ 'message' ] == 'Forbidden' ) #NEWLINE# assert ( ( channel_pam + 'no_rw' ) in hresp4 [ 'payload' ] [ 'channels' ] )