40
40
for a given location, key pair.
44
43
def missing_content(location_keys):
45
44
calls.append(location_keys)
46
45
return ((location_key, False) for location_key in location_keys)
48
list(bisect_multi_bytes(missing_content, 0, ['foo', 'bar'])))
47
list(bisect_multi_bytes(missing_content, 0, ['foo', 'bar'])))
49
48
self.assertEqual([[(0, 'foo'), (0, 'bar')]], calls)
51
50
def test_lookup_missing_key_before_all_others(self):
54
52
def missing_first_content(location_keys):
55
53
# returns -1 for all keys unless the byte offset is 0 when it