#NEWLINE# def test_0_notification1( self ) : #NEWLINE# #INDENT# l = [ ] #NEWLINE# def callback( n ) : #NEWLINE# #INDENT# l . append ( n ) #NEWLINE# #UNINDENT# c = rpc . Client ( self . _client_sock , notification_callback = callback ) #NEWLINE# obj = b'hogehoge' #NEWLINE# robj = b'fugafuga' #NEWLINE# assert ( c . call ( b'notify1' , [ robj , b'notify_hoge' , [ obj ] ] ) == robj ) #NEWLINE# c . receive_notification ( ) #NEWLINE# assert ( len ( l ) == 1 ) #NEWLINE# n = l . pop ( 0 ) #NEWLINE# assert ( n is not None ) #NEWLINE# ( method , params ) = c #NEWLINE# assert ( method == b'notify_hoge' ) #NEWLINE# assert ( params [ 0 ] == obj )