projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1ad64
)
storage.py: add a test for the next_power_of_k fix I made a few hours ago, basically...
author
Brian Warner
<warner@lothar.com>
Sat, 14 Jul 2007 05:24:06 +0000
(22:24 -0700)
committer
Brian Warner
<warner@lothar.com>
Sat, 14 Jul 2007 05:24:06 +0000
(22:24 -0700)
src/allmydata/test/test_upload.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_upload.py
b/src/allmydata/test/test_upload.py
index eaddffa716a1a2bfbb9b31c158e325281bcd131d..050faa67d9e3d4616dc952c7496f731602731404 100644
(file)
--- a/
src/allmydata/test/test_upload.py
+++ b/
src/allmydata/test/test_upload.py
@@
-140,6
+140,14
@@
class GoodServer(unittest.TestCase):
d.addCallback(self._check_large, SIZE_LARGE)
return d
+ def test_data_large_odd_segments(self):
+ data = self.get_data(SIZE_LARGE)
+ segsize = int(SIZE_LARGE / 2.5)
+ # we want 3 segments, since that's not a power of two
+ d = self.u.upload_data(data, {"max_segment_size": segsize})
+ d.addCallback(self._check_large, SIZE_LARGE)
+ return d
+
def test_filehandle_zero(self):
data = self.get_data(SIZE_ZERO)
d = self.u.upload_filehandle(StringIO(data))