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