Procházet zdrojové kódy

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

Jelmer Vernooij před 4 roky
rodič
revize
9b12d180b3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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')