

@defer.inlineCallbacks
def test_batch2(self):
    request.service.stopServing(FooException)
    request = [{
        'jsonrpc': '2.0',
        'method': 'update',
        'params': [1, 2, 3, 4, 5],
    }, {
        'jsonrpc': '2.0',
        'method': 'subtract',
        'params': {
            'subtrahend': 23,
            'minuend': 42,
        },
        'id': 3,
    }]
    expected = [{
        'error': {
            'code': (- 32099),
            'message': 'Foo',
        },
        'id': 3,
        'jsonrpc': '2.0',
    }]
    (yield self.makeRequest(request, expected))

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ServiceTestCase.test_batch2/VarMisuse@15/19 `self`->`request`