commit afb120714f2a8ef93a58a99cf7af042c7f9b7bb9 from: jelmer@jelmer.uk date: Mon Oct 28 13:44:42 2024 UTC Add PackIndex.iter_prefix commit - fc15ca82fd66c12f4956b971eab943f15f861a83 commit + afb120714f2a8ef93a58a99cf7af042c7f9b7bb9 blob - 2bf0c89d42dbbc7a068f35beb5e31be8f8e059e9 blob + ed1acbeba9b113d2dcd65475224f6acbf4a1ee82 --- tests/test_pack.py +++ tests/test_pack.py @@ -127,8 +127,12 @@ class PackIndexTests(PackTests): def test_iter_prefix(self): p = self.get_pack_index(pack1_sha) self.assertEqual([p.object_sha1(178)], list(p.iter_prefix(hex_to_sha(a_sha)))) - self.assertEqual([p.object_sha1(178)], list(p.iter_prefix(hex_to_sha(a_sha)[:5]))) - self.assertEqual([p.object_sha1(178)], list(p.iter_prefix(hex_to_sha(a_sha)[:2]))) + self.assertEqual( + [p.object_sha1(178)], list(p.iter_prefix(hex_to_sha(a_sha)[:5])) + ) + self.assertEqual( + [p.object_sha1(178)], list(p.iter_prefix(hex_to_sha(a_sha)[:2])) + ) def test_index_len(self): p = self.get_pack_index(pack1_sha)