def test_cache_group_x_jussi_cache_key(steemd_requests_and_responses): req, resp = steemd_requests_and_responses req = JussiJSONRPCRequest.from_request(dummy_request, 0, req) batch_req = [req, req, req] assert jsonrpc_cache_key(req) == CacheGroup.x_jussi_cache_key(req) assert CacheGroup.x_jussi_cache_key(batch_req) == 'batch'
def test_cache_group_x_jussi_cache_key(steemd_requests_and_responses): req, resp = steemd_requests_and_responses batch_req = [req, req, req] assert jsonrpc_cache_key(req) == CacheGroup.x_jussi_cache_key(req) assert CacheGroup.x_jussi_cache_key(batch_req) == 'batch'