Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/g/r/gruvi-HEAD/tests/test_jsonrpc.py   gruvi(Download)
        nbytes = parser.feed(m)
        self.assertNotEqual(nbytes, len(m))
        self.assertEqual(parser.error, errno.PARSE_ERROR)
 
    def test_illegal_jsonrpc(self):
        m = b'{ "xxxx": "yyyy" }'
        parser = JsonRpcParser()
        nbytes = parser.feed(m)
        self.assertNotEqual(nbytes, len(m))
        self.assertEqual(parser.error, errno.PARSE_ERROR)

src/g/r/gruvi-0.9.2/tests/test_jsonrpc.py   gruvi(Download)
        nbytes = parser.feed(m)
        self.assertNotEqual(nbytes, len(m))
        self.assertEqual(parser.error, errno.PARSE_ERROR)
 
    def test_illegal_jsonrpc(self):
        m = b'{ "xxxx": "yyyy" }'
        parser = JsonRpcParser()
        nbytes = parser.feed(m)
        self.assertNotEqual(nbytes, len(m))
        self.assertEqual(parser.error, errno.PARSE_ERROR)