

@defer.inlineCallbacks
def test_deferred_batch(self):
    request = [{
        'jsonrpc': '2.0',
        'method': 'deferred_echo',
        'params': ['x'],
        'id': 1,
    }, {
        'jsonrpc': '2.0',
        'method': 'subtract',
        'params': [42, 23],
        'id': 2,
    }]
    expected = [{
        'jsonrpc': '2.0',
        'result': 'x',
        'id': 1,
    }, {
        'jsonrpc': '2.0',
        'result': 19,
        'id': 2,
    }]
    (yield expected.makeRequest(request, expected))

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ServiceTestCase.test_deferred_batch/VarMisuse@117/181 `self`->`expected`