trivial: tiny changes to test code
This commit is contained in:
parent
ecabcc674c
commit
9bba578776
|
@ -433,7 +433,7 @@ class Roundtrip(unittest.TestCase, testutil.ShouldFailMixin):
|
||||||
target=target)
|
target=target)
|
||||||
# that fires with newdata
|
# that fires with newdata
|
||||||
def _downloaded((newdata, fd)):
|
def _downloaded((newdata, fd)):
|
||||||
self.failUnless(newdata == data)
|
self.failUnless(newdata == data, str((len(newdata), len(data))))
|
||||||
return fd
|
return fd
|
||||||
d.addCallback(_downloaded)
|
d.addCallback(_downloaded)
|
||||||
return d
|
return d
|
||||||
|
|
|
@ -262,7 +262,7 @@ class Test(ShareManglingMixin, unittest.TestCase):
|
||||||
|
|
||||||
def _upload_a_file(ignored):
|
def _upload_a_file(ignored):
|
||||||
client = self.clients[0]
|
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).
|
# (i.e. they have more than just one hash in them).
|
||||||
client.DEFAULT_ENCODING_PARAMETERS['max_segment_size'] = 12
|
client.DEFAULT_ENCODING_PARAMETERS['max_segment_size'] = 12
|
||||||
d2 = client.upload(upload.Data(TEST_DATA, convergence=""))
|
d2 = client.upload(upload.Data(TEST_DATA, convergence=""))
|
||||||
|
|
Loading…
Reference in New Issue