#NEWLINE# def test_invalidParamsCaseSensitive( self ) : #NEWLINE# #INDENT# request = DummyRequest ( [ '' ] ) #NEWLINE# request . content = StringIO ( ( '{"method": "echo", "id": "ABCD", ' + '"PARAMS": ["AB"]}' ) ) #NEWLINE# d = _render ( rendered . srv , request ) #NEWLINE# def rendered( _ ) : #NEWLINE# #INDENT# expected = ( ( '{"result": null, "id": "ABCD", "error": ' + '{"message": "jsonrpc_echo() takes exactly 2 ' ) + 'arguments (1 given)", "code": -32602}}' ) #NEWLINE# self . assertEquals ( request . written [ 0 ] , expected ) #NEWLINE# #UNINDENT# d . addCallback ( rendered ) #NEWLINE# return d