#NEWLINE# def test_batchNotificationOnly( self ) : #NEWLINE# #INDENT# json = ( '[{"method": "echo", "params": {"data": "arg"}}, ' + '{"method": "echo", "params": {"data": "arg"}}]' ) #NEWLINE# request = DummyRequest ( [ '' ] ) #NEWLINE# request . content = StringIO ( json ) #NEWLINE# d = _render ( self . srv , request ) #NEWLINE# def rendered( _ ) : #NEWLINE# #INDENT# self . assertEquals ( request . written , [ ] ) #NEWLINE# #UNINDENT# d . addCallback ( rendered ) #NEWLINE# return d