Module Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body If AttributeLoad NameLoad attr body Return Call NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Str Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign NameStore Call NameLoad Call NameLoad NameLoad ListLoad TupleLoad Str NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr Str Str Call NameLoad Dict Str ListLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Yield NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list
N/A N/A os N/A sys N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path abspath .. N/A json StringIO StringIO twisted.internet reactor defer twisted.internet.defer succeed twisted.internet.protocol Protocol twisted.trial.unittest TestCase twisted.web.client Agent ContentDecoderAgent GzipDecoder twisted.web.http_headers Headers twisted.web.iweb IBodyProducer twisted.web.server NOT_DONE_YET Site twisted.web.test.test_web DummyRequest zope.interface implements fastjsonrpc.server JSONRPCServer EncodingJSONRPCServer dummyserver DummyServer DBFILE _render N/A N/A resource request N/A N/A N/A result N/A N/A resource render request N/A N/A isinstance result str N/A N/A N/A N/A request write result N/A N/A N/A request finish N/A N/A succeed None N/A N/A N/A result NOT_DONE_YET N/A N/A N/A request finished N/A N/A N/A succeed None N/A N/A N/A N/A request notifyFinish N/A N/A N/A ValueError N/A Unexpected return value: %r N/A result N/A TestRender N/A TestCase N/A N/A timeout 1 setUp N/A N/A self N/A N/A N/A N/A self srv N/A DummyServer N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A os path exists DBFILE N/A N/A N/A N/A os unlink DBFILE N/A test_emptyRequest N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A {"jsonrpc": "2.0", "id": null, "error":  {"message": "Parse error", "code": -32700}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_malformed N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "sql", "id N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A {"jsonrpc": "2.0", "id": null, "error":  {"message": "Parse error", "code": -32700}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_contentType N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1,  "params": ["ab"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A N/A request outgoingHeaders N/A content-type application/json N/A N/A N/A N/A d addCallback rendered N/A d N/A test_contentLength N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1,  "params": ["ab"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A str N/A len N/A N/A request written N/A 0 N/A N/A request outgoingHeaders N/A content-length N/A N/A N/A N/A d addCallback rendered N/A d N/A test_idStrV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": "abcd",  "params": ["ab"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"error": null, "id": "abcd", "result": "ab"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_idStrV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": "abcd",  "params": ["ab"], "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A {"jsonrpc": "2.0", "id": "abcd",  "result": "ab"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_returnNone N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "returnNone", "id": 1} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"error": null, "id": 1, "result": null} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_caseSensitiveMethodV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "ECHO", "id": "ABCD",  "params": ["AB"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A {"result": null, "id": "ABCD", "error": { "message": "Method ECHO not found", "code": -32601}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_caseSensitiveParamsV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": "ABCD",  "params": ["AB"], "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"jsonrpc": "2.0", "id": "ABCD", "result": "AB"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_invalidMethodCaseSensitive N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"METHOD": "echo", "id": "ABCD",  "params": ["AB"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A {"result": null, "id": "ABCD", "error":  {"message": "Invalid method type", "code": -32600}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_invalidIdCaseSensitive N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "ID": "ABCD",  "params": ["AB"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A request written N/A N/A N/A N/A N/A d addCallback rendered N/A d N/A test_invalidParamsCaseSensitive N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": "ABCD",  "PARAMS": ["AB"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A N/A {"result": null, "id": "ABCD", "error":  {"message": "jsonrpc_echo() takes exactly 2  arguments (1 given)", "code": -32602}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_echoOk N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1,  "params": ["ab"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"error": null, "id": 1, "result": "ab"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_echoOkV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1,  "params": ["ab"], "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"jsonrpc": "2.0", "id": 1, "result": "ab"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_sqlOkV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "sql", "id": 1} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"error": null, "id": 1, "result": [ N/A N/A N/A self assertTrue N/A N/A N/A N/A request written N/A 0 startswith expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_sqlOkV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"jsonrpc": "2.0", "method": "sql", "id": 1} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"jsonrpc": "2.0", "id": 1, "result": [ N/A N/A N/A self assertTrue N/A N/A N/A N/A request written N/A 0 startswith expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_notificationV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "sql"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A request written N/A N/A N/A N/A N/A d addCallback rendered N/A d N/A test_notificationV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "sql", "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A request written N/A N/A N/A N/A N/A d addCallback rendered N/A d N/A test_noSuchMethodNoId N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "aaaa"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A request written N/A N/A N/A N/A N/A d addCallback rendered N/A d N/A test_noSuchMethodV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO {"method": "aaaa", "id": 1} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A N/A {"result": null, "id": 1, "error":  {"message": "Method aaaa not found",  "code": -32601}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_noSuchMethodV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "aaaa", "id": 1,  "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A N/A {"jsonrpc": "2.0", "id": 1, "error":  {"message": "Method aaaa not found",  "code": -32601}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_wrongParams N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "sql", "id": 1,  "params": ["aa", "bb"]} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A N/A {"result": null, "id": 1, "error": {"message":  "jsonrpc_sql() takes exactly 1 argument (3 given)" , "code": -32602}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_keywordsOkV1 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1, "params":  {"data": "arg"}} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"error": null, "id": 1, "result": "arg"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_keywordsOkV2 N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1, "params":  {"data": "arg"}, "jsonrpc": "2.0"} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected {"jsonrpc": "2.0", "id": 1, "result": "arg"} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_keywordsUnexpected N/A N/A self N/A N/A N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO N/A {"method": "echo", "id": 1, "params":  {"wrongname": "arg"}} N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A N/A {"result": null, "id": 1, "error": {"message":  "jsonrpc_echo() got an unexpected keyword argument  'wrongname'", "code": -32602}} N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batch N/A N/A self N/A N/A N/A json N/A [{"method": "echo", "id": 1, "params": {"data": "arg"}},  {"method": "echo", "id": 2, "params": {"data": "arg"}}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A [{"error": null, "id": 1, "result": "arg"},  {"error": null, "id": 2, "result": "arg"}] N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batchNotificationOnly N/A N/A self N/A N/A N/A json N/A [{"method": "echo", "params": {"data": "arg"}},  {"method": "echo", "params": {"data": "arg"}}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A N/A N/A self assertEquals N/A request written N/A N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batchNotificationMixed N/A N/A self N/A N/A N/A json N/A N/A [{"method": "echo", "id": 1, "params": {"data": "arg"}},  {"method": "echo", "id": 2, "params": {"data": "arg"}},  {"method": "echo", "params": {"data": "arg"}}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A [{"error": null, "id": 1, "result": "arg"},  {"error": null, "id": 2, "result": "arg"}] N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batchV1V2 N/A N/A self N/A N/A N/A json N/A N/A [{"method": "echo", "id": 1, "params": ["arg"]},  {"method": "echo", "id": "abc", "params": ["arg"],  "jsonrpc": "2.0"}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected N/A [{"error": null, "id": 1, "result": "arg"},  {"jsonrpc": "2.0", "id": "abc", "result": "arg"}] N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batchSingle N/A N/A self N/A N/A N/A json [{"method": "echo", "id": 1, "params": ["arg"]}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected [{"error": null, "id": 1, "result": "arg"}] N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A test_batchNotificationAndSingle N/A N/A self N/A N/A N/A json N/A [{"method": "echo", "id": 1, "params": ["arg"]},  {"method": "echo", "params": ["arg"]}] N/A request N/A DummyRequest N/A N/A N/A request content N/A StringIO json N/A d N/A _render N/A self srv request rendered N/A N/A _ N/A N/A N/A expected [{"error": null, "id": 1, "result": "arg"}] N/A N/A N/A self assertEquals N/A N/A request written N/A 0 expected N/A N/A N/A N/A d addCallback rendered N/A d N/A N/A TestEncodingJSONRPCServer N/A TestCase N/A N/A timeout 1 test_EncodingJSONRPCServer N/A N/A self N/A N/A N/A DATA N/A foo bar N/A REQUEST {"jsonrpc": "2.0", "method": "test", "params": [], "id": 1} N/A RESPONSE N/A N/A {"jsonrpc": "2.0", "id": 1, "result":  N/A N/A json dumps DATA } RPCServer N/A JSONRPCServer N/A jsonrpc_test N/A N/A self N/A N/A N/A N/A N/A defer succeed DATA N/A N/A ReceiverProtocol N/A Protocol N/A __init__ N/A N/A self finished N/A N/A N/A N/A self finished finished N/A N/A self body N/A N/A dataReceived N/A N/A self bytes N/A N/A N/A N/A N/A N/A self body append bytes N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A self finished callback N/A N/A join N/A self body N/A N/A StringProducer N/A object N/A N/A N/A implements IBodyProducer __init__ N/A N/A self body N/A N/A N/A N/A self body body N/A N/A self length N/A len body N/A startProducing N/A N/A self consumer N/A N/A N/A N/A N/A consumer write N/A self body N/A N/A N/A defer succeed None N/A pauseProducing N/A N/A self N/A N/A N/A N/A stopProducing N/A N/A self N/A N/A N/A N/A N/A N/A server N/A RPCServer N/A resource N/A EncodingJSONRPCServer server N/A site N/A Site resource N/A port N/A N/A reactor listenTCP 8888 site interface 127.0.0.1 N/A agent N/A ContentDecoderAgent N/A Agent reactor N/A N/A gzip GzipDecoder N/A response N/A N/A N/A agent request POST http://127.0.0.1:8888 N/A Headers N/A Accept-Encoding N/A gzip N/A StringProducer REQUEST N/A N/A N/A self assertTrue N/A isinstance response GzipDecoder N/A finished N/A N/A defer Deferred N/A N/A N/A response deliverBody N/A ReceiverProtocol finished N/A data N/A finished N/A N/A N/A self assertEqual data RESPONSE N/A N/A N/A port stopListening N/A N/A defer inlineCallbacks N/A