def test_sint64(proto_lib): from test_signed_integer_proto import Int a = Int() v = gen_rand_int64() a.SInt64 = v assert Int.FromString(a.SerializeToString()).SInt64 == v
def test_uint32(proto_lib): from test_signed_integer_proto import Int a = Int() v = gen_rand_uint32() a.UInt32 = v assert Int.FromString(a.SerializeToString()).UInt32 == v