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