Exemplo n.º 1
0
def test_int32(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_int32()
    a.Int32 = v
    assert Int.FromString(a.SerializeToString()).Int32 == v
Exemplo n.º 2
0
def test_int32(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_int32()
    a.Int32 = v
    assert Int.FromString(a.SerializeToString()).Int32 == v