git://git.novaco.in
/
p2pool.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
cb5e2bd563a9fd80bca6db47fe95cb3fd6cfa68e
[p2pool.git]
/
p2pool
/
test
/
util
/
test_pack.py
1
import unittest
2
3
from p2pool.util import pack
4
5
class Test(unittest.TestCase):
6
def test_VarInt(self):
7
t = pack.VarIntType()
8
for i in xrange(2**20):
9
assert t.unpack(t.pack(i)) == i