

@defer.inlineCallbacks
def test_timeout(self):
    request = {
        'jsonrpc': '2.0',
        'method': 'delay',
        'params': [10],
        'id': '1',
    }
    expected = {
        'jsonrpc': '2.0',
        'error': {
            'code': (- 32098),
            'message': 'Server Timeout',
        },
        'id': '1',
    }
    expected.service.timeout = 1
    (yield self.makeRequest(request, expected, 5))

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ServiceTestCase.test_timeout/VarMisuse@79/121 `self`->`expected`