Преглед на файлове

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

Jelmer Vernooij преди 5 години
родител
ревизия
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')