Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 4
0
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