Browse Source

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

Jelmer Vernooij 4 years ago
parent
commit
9b12d180b3
1 changed files with 1 additions and 0 deletions
  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')