Explorar o código

Add test for checking of 40-length object ids with non-hex characters.

Jelmer Vernooij %!s(int64=5) %!d(string=hai) anos
pai
achega
9b12d180b3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dulwich/tests/test_repository.py

+ 1 - 0
dulwich/tests/test_repository.py

@@ -207,6 +207,7 @@ class RepositoryRootTests(TestCase):
     def test_contains_object(self):
         r = self.open_repo('a.git')
         self.assertTrue(r.head() in r)
+        self.assertFalse(b"z" * 40 in r)
 
     def test_contains_ref(self):
         r = self.open_repo('a.git')