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_dbus.py   gruvi(Download)
    def test_invalid_body_size(self):
        m = b'l\1\0\1\xf1\xff\xff\x0f\1\0\0\0\0\0\0\0b234'
        ctx = split_string(m)
        self.assertEqual(ctx.error, dbus_ffi.lib.ERROR_TOO_LARGE)
        self.assertEqual(ctx.offset, 7)

src/g/r/gruvi-0.9.2/tests/test_dbus.py   gruvi(Download)
    def test_invalid_body_size(self):
        m = b'l\1\0\1\xf1\xff\xff\x0f\1\0\0\0\0\0\0\0b234'
        ctx = split_string(m)
        self.assertEqual(ctx.error, dbus_ffi.lib.ERROR_TOO_LARGE)
        self.assertEqual(ctx.offset, 7)