283
284
lines.append(b'%s\0\0%d %d %d %d\n' % (key_str, i, i, i, i))
285
286
leaf = self.module._parse_into_chk(data, 1, 0)
287
288
offsets = leaf._get_offsets()
288
289
# This is the interesting bits for each entry
289
290
lst = [x // 2 for x in range(500)]
291
292
self.assertEqual(expected_offsets, offsets)
292
293
# We truncate because offsets is an unsigned char. So the bisection
293
294
# will just say 'greater than the last one' for all the rest