def test_insert_regression(): bt = BTree.bulkload(range(2000), 50) for i in xrange(100000): bt.insert(random.randrange(2000))
def test_bulkloads(): bt = BTree.bulkload(range(2000), 20) assert list(bt) == range(2000)