#NEWLINE# def test_jsonrpc_spec_v2_example7( prot ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# prot . parse_request ( '[\n            {"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"},\n            {"jsonrpc": "2.0", "method" ]' ) #NEWLINE# assert False #NEWLINE# #UNINDENT# except JSONRPCParseError as error : #NEWLINE# #INDENT# e = response #NEWLINE# #UNINDENT# response = e . error_respond ( ) #NEWLINE# assert _json_equal ( '{"jsonrpc": "2.0", "error": {"code": -32700, "message":\n           "Parse error"}, "id": null}' , response . serialize ( ) )