#NEWLINE# def test_notifyRemote( self ) : #NEWLINE# #INDENT# '\n        notifyRemote sends data but and returns a Deferred, but does not expect\n        a response.\n        ' #NEWLINE# self . assertFalse ( self . endpoint . connected ) #NEWLINE# d = self . factory . notifyRemote ( 'spam' ) #NEWLINE# self . assert_ ( self . endpoint . connected ) #NEWLINE# self . assertEqual ( json . loads ( readNetstring ( self . endpoint . transport . value ( ) ) ) , { #NEWLINE# #INDENT# 'params' : [ ] , #NEWLINE# 'jsonrpc' : '2.0' , #NEWLINE# 'method' : 'spam' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . successResultOf ( d )