

@defer.inlineCallbacks
def test_invalid_json(self):
    request = '{"jsonrpc": "2.0", "method": "foobar, "params": "bar", "baz]'
    expected = {
        'jsonrpc': '2.0',
        'error': {
            'code': (- 32700),
            'message': 'Parse error',
        },
        'id': None,
    }
    (yield self.makeRequest(request, expected))

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