예제 #1
0
def test_is_valid_jsonrpc_response_using_steemd(steemd_requests_and_responses):
    req, resp = steemd_requests_and_responses
    req = JussiJSONRPCRequest.from_request(dummy_request, 0, req)
    assert is_valid_jsonrpc_response(req, resp) is True
예제 #2
0
def test_is_valid_jsonrpc_response_using_steemd(steemd_requests_and_responses):
    req, resp = steemd_requests_and_responses
    assert is_valid_jsonrpc_response(req, resp) is True
예제 #3
0
def test_is_valid_jsonrpc_response(req, resp, expected):
    # if not isinstance(req, JussiJSONRPCRequest):
    #    req = JussiJSONRPCRequest.from_request(dummy_request,0,req)
    assert is_valid_jsonrpc_response(req, resp) is expected
예제 #4
0
def test_is_valid_jsonrpc_response(req, resp, expected):
    assert is_valid_jsonrpc_response(req, resp) is expected