Browse Source

Add PackIndex.iter_prefix

jelmer@jelmer.uk 4 months ago
parent
commit
afb120714f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      tests/test_pack.py

+ 6 - 2
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)