コード例 #1
0
ファイル: test_signed_integer.py プロジェクト: grgsrs/pyrobuf
def test_uint64(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_uint64()
    a.UInt64 = v
    assert Int.FromString(a.SerializeToString()).UInt64 == v
コード例 #2
0
ファイル: test_signed_integer.py プロジェクト: zmyer/pyrobuf
def test_uint64(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_uint64()
    a.UInt64 = v
    assert Int.FromString(a.SerializeToString()).UInt64 == v