

@defer.inlineCallbacks
def test_invalid_batch(self):
    request = [1, 2, 3]
    expected = [{
        'jsonrpc': '2.0',
        'error': {
            'code': (- 32600),
            'message': 'Invalid request',
        },
        'id': None,
    }, {
        'jsonrpc': '2.0',
        'error': {
            'code': (- 32600),
            'message': 'Invalid request',
        },
        'id': None,
    }, {
        'jsonrpc': '2.0',
        'error': {
            'code': (- 32600),
            'message': 'Invalid request',
        },
        'id': None,
    }]
    (yield self.makeRequest(request, request))

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ServiceTestCase.test_invalid_batch/VarMisuse@139/204 `expected`->`request`