

@defer.inlineCallbacks
def test_named_params(self):
    request = {
        'jsonrpc': '2.0',
        'method': 'subtract',
        'params': {
            'subtrahend': 23,
            'minuend': 42,
        },
        'id': 1,
    }
    expected = {
        'jsonrpc': '2.0',
        'result': 19,
        'id': 1,
    }
    (yield self.makeRequest(request, expected))
    request = {
        'jsonrpc': '2.0',
        'method': 'subtract',
        'params': {
            'minuend': 42,
            'subtrahend': 23,
        },
        'id': 1,
    }
    expected = {
        'jsonrpc': '2.0',
        'result': 19,
        'id': 1,
    }
    (yield self.makeRequest(request, expected))

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ServiceTestCase.test_named_params/original