Ver código fonte

test_pack: simpler assertion that passes in more places

Change-Id: I224f251f791f1baf94910cc389797bf08139509a
Augie Fackler 15 anos atrás
pai
commit
7f11aff189
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      dulwich/tests/test_pack.py

+ 2 - 2
dulwich/tests/test_pack.py

@@ -136,8 +136,8 @@ class TestPackDeltas(unittest.TestCase):
     test_string_big = 'Z' * 8192
 
     def _test_roundtrip(self, base, target):
-        self.assertEquals([target],
-                          apply_delta(base, create_delta(base, target)))
+        self.assertEquals(target,
+                          ''.join(apply_delta(base, create_delta(base, target))))
 
     def test_nochange(self):
         self._test_roundtrip(self.test_string1, self.test_string1)