コード例 #1
0
ファイル: test_archive.py プロジェクト: maguro/pookeeper
def test_byte():
    oa = OutputArchive()
    for b in range(256):
        oa.write_byte(b, 'tag_' + str(b))
    ia = InputArchive(str(oa.buffer))
    for b in range(256):
        r = ia.read_byte('tag_' + str(b))
        assert b == r