Ejemplo n.º 1
0
    def test_encode_to_bytes_varint(self):
        msg = Message()
        msg.parse_from_bytes(b"\x08\x96\x01")

        self.assertEqual(msg.encode_to_bytes(), b"\x08\x96\x01")
Ejemplo n.º 2
0
    def test_encode_to_bytes_varint(self):
        msg = Message()
        msg.parse_from_bytes(b'\x08\x96\x01')

        self.assertEqual(msg.encode_to_bytes(), b'\x08\x96\x01')