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

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

src/g/r/gruvi-0.9.2/tests/txdbus/test_marshal.py   gruvi(Download)
    def check(self, sig, expected_value, encoding):
        nbytes, value = m.unmarshal( sig, encoding, 0 )
        self.assertEquals( nbytes, len(encoding), "Unmarshalling length mismatch. Expected %d bytes consumed. Got %d" % (len(encoding), nbytes) )        
        self.assertTrue( check_equal([expected_value], value), 'Value mismatch. Expected: "%s". Got: "%s"' % (repr(expected_value), repr(value)))
 

src/g/r/gruvi-HEAD/tests/txdbus/test_marshal.py   gruvi(Download)
    def check(self, sig, expected_value, encoding):
        nbytes, value = m.unmarshal( sig, encoding, 0 )
        self.assertEquals( nbytes, len(encoding), "Unmarshalling length mismatch. Expected %d bytes consumed. Got %d" % (len(encoding), nbytes) )        
        self.assertTrue( check_equal([expected_value], value), 'Value mismatch. Expected: "%s". Got: "%s"' % (repr(expected_value), repr(value)))