Exemplo n.º 1
0
def test_bulkload():
    bt = BPlusTree.bulkload(zip(range(2000), map(str, range(2000))), 20)

    assert list(bt) == range(2000)

    assert list(bt.iteritems()) == zip(range(2000), map(str, range(2000)))
Exemplo n.º 2
0
def test_bulkload():
    bt = BPlusTree.bulkload(zip(range(2000), map(str, range(2000))), 20)

    assert list(bt) == range(2000)

    assert list(bt.iteritems()) ==  zip(range(2000), map(str, range(2000)))