ソースを参照

test_diff_tree: Extract a base TestCase class.

Change-Id: I9310bfb38aeb930e011f82dc34bb2107d0f23086
Dave Borowitz 14 年 前
コミット
cdec61b7a6
1 ファイル変更5 行追加2 行削除
  1. 5 2
      dulwich/tests/test_diff_tree.py

+ 5 - 2
dulwich/tests/test_diff_tree.py

@@ -45,10 +45,10 @@ from dulwich.tests.utils import (
     )
 
 
-class TreeChangesTest(TestCase):
+class DiffTestCase(TestCase):
 
     def setUp(self):
-        super(TreeChangesTest, self).setUp()
+        super(DiffTestCase, self).setUp()
         self.store = MemoryObjectStore()
         self.empty_tree = self.commit_tree([])
 
@@ -59,6 +59,9 @@ class TreeChangesTest(TestCase):
             commit_blobs.append((path, blob.id, mode))
         return self.store[commit_tree(self.store, commit_blobs)]
 
+
+class TreeChangesTest(DiffTestCase):
+
     def test_merge_entries(self):
         blob_a1 = make_object(Blob, data='a1')
         blob_a2 = make_object(Blob, data='a2')