4 from p2pool import skiplists
5 from p2pool.util import forest
6 from p2pool.test.util import test_forest
8 class Test(unittest.TestCase):
11 d = skiplists.WeightsSkipList(t)
13 t.add(test_forest.FakeShare(hash=i, previous_hash=i - 1 if i > 0 else None, new_script=i, share_data=dict(donation=1234), target=2**249))
15 a = random.randrange(200)
16 d(a, random.randrange(a + 1), 1000000*65535)[1]