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