]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
trivial: tiny changes to test code
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 8 Jan 2009 18:20:48 +0000 (11:20 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 8 Jan 2009 18:20:48 +0000 (11:20 -0700)
src/allmydata/test/test_encode.py
src/allmydata/test/test_immutable.py

index 1bcec9aa01872820f326436b1f1ffa55ebe36524..0954530ded9973875ea68ce4d66ebf5e2d39add4 100644 (file)
@@ -433,7 +433,7 @@ class Roundtrip(unittest.TestCase, testutil.ShouldFailMixin):
                       target=target)
         # that fires with newdata
         def _downloaded((newdata, fd)):
-            self.failUnless(newdata == data)
+            self.failUnless(newdata == data, str((len(newdata), len(data))))
             return fd
         d.addCallback(_downloaded)
         return d
index 06674726ecaebcb4e8822ba478bcdd5b33921f6a..937fa866c58f14e4843555a83825e4adb3838af7 100644 (file)
@@ -262,7 +262,7 @@ class Test(ShareManglingMixin, unittest.TestCase):
 
         def _upload_a_file(ignored):
             client = self.clients[0]
-            # We need multiple segments to test crypttext hash tree's that are non-trivial
+            # We need multiple segments to test crypttext hash trees that are non-trivial
             # (i.e. they have more than just one hash in them).
             client.DEFAULT_ENCODING_PARAMETERS['max_segment_size'] = 12
             d2 = client.upload(upload.Data(TEST_DATA, convergence=""))