Commit f6de3d63 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 70a646fb
......@@ -553,33 +553,12 @@ def test_restructure():
assert crack_btree(z) == (BTREE_ONE, ((1, X[1]),), None)
R(z, 'T/T/B1')
t, = assertT(z, [], 'T')
"""
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert isinstance(kids[0], XLOTree)
"""
b1, = assertT(t, [], 'B')
"""
kind, keys, kids = crack_btree(kids[0])
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
b1, = kids
assert isinstance(b1, LOBucket)
"""
assertB(b1, 1)
#assert crack_bucket(b1) == ([1], [X[1]])
assert b1._p_oid is not None
R(z, 'T/B1')
assertT(z, [], b1)
"""
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert kids[0] is b1
"""
assertB(b1, 1)
#assert crack_bucket(b1) == ([1], [X[1]])
# tree with 2 k->v (not-yet committed bucket)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment