From 9bba57877620c0b86d3ac6bbe97acf95d6254d03 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Thu, 8 Jan 2009 11:20:48 -0700 Subject: [PATCH] trivial: tiny changes to test code --- src/allmydata/test/test_encode.py | 2 +- src/allmydata/test/test_immutable.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_encode.py b/src/allmydata/test/test_encode.py index 1bcec9aa..0954530d 100644 --- a/src/allmydata/test/test_encode.py +++ b/src/allmydata/test/test_encode.py @@ -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 diff --git a/src/allmydata/test/test_immutable.py b/src/allmydata/test/test_immutable.py index 06674726..937fa866 100644 --- a/src/allmydata/test/test_immutable.py +++ b/src/allmydata/test/test_immutable.py @@ -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="")) -- 2.45.2