소스 검색

Add more tests.

Jelmer Vernooij 17 년 전
부모
커밋
4b36d62208
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      dulwich/tests/test_object_store.py

+ 8 - 1
dulwich/tests/test_object_store.py

@@ -29,5 +29,12 @@ class ObjectStoreTests(TestCase):
         o = ObjectStore("foo")
         self.assertEquals([], o.packs)
 
+    def test_add_objects_empty(self):
+        o = ObjectStore("foo")
+        o.add_objects([])
 
-
+    def test_add_commit(self):
+        o = ObjectStore("foo")
+        # TODO: Argh, no way to construct Git commit objects without 
+        # access to a serialized form.
+        o.add_objects([])