|
|
@@ -69,9 +69,9 @@ class TestBulkData(object): |
|
|
|
raw = [] |
|
|
|
for i in range(1000): |
|
|
|
raw.append("%d 1 2 3 4 5 6 7 8\n" % (10000 + i)) |
|
|
|
node.append_string("".join(raw[0:1]), 0, 50000) |
|
|
|
node.append_string("".join(raw[1:100]), 0, 50000) |
|
|
|
node.append_string("".join(raw[100:]), 0, 50000) |
|
|
|
node.append_data("".join(raw[0:1]), 0, 50000) |
|
|
|
node.append_data("".join(raw[1:100]), 0, 50000) |
|
|
|
node.append_data("".join(raw[100:]), 0, 50000) |
|
|
|
|
|
|
|
misc_slices = [ 0, 100, slice(None), slice(0), slice(10), |
|
|
|
slice(5,10), slice(3,None), slice(3,-3), |
|
|
@@ -85,7 +85,7 @@ class TestBulkData(object): |
|
|
|
# Extract misc slices while appending, to make sure the |
|
|
|
# data isn't being added in the middle of the file |
|
|
|
for s in [2, slice(1,5), 2, slice(1,5)]: |
|
|
|
node.append_string("0 0 0 0 0 0 0 0 0\n", 0, 50000) |
|
|
|
node.append_data("0 0 0 0 0 0 0 0 0\n", 0, 50000) |
|
|
|
raw.append("0 0 0 0 0 0 0 0 0\n") |
|
|
|
eq_(get_node_slice(s), raw[s]) |
|
|
|
|
|
|
|