瀏覽代碼

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

Jelmer Vernooij 4 年之前
父節點
當前提交
9b12d180b3
共有 1 個文件被更改,包括 1 次插入0 次删除
  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')