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:
6d7319c
)
storage: add test coverage for BucketReader.__repr__
author
Brian Warner
<warner@lothar.com>
Mon, 9 Mar 2009 03:05:27 +0000
(20:05 -0700)
committer
Brian Warner
<warner@lothar.com>
Mon, 9 Mar 2009 03:05:27 +0000
(20:05 -0700)
src/allmydata/test/test_storage.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_storage.py
b/src/allmydata/test/test_storage.py
index 49734ea3cae591d1ac5b37061c963805a00574a0..cff630379346938b52b83c10b670a59fcb3144bf 100644
(file)
--- a/
src/allmydata/test/test_storage.py
+++ b/
src/allmydata/test/test_storage.py
@@
-344,6
+344,9
@@
class Server(unittest.TestCase):
b = ss.remote_get_buckets("allocate")
self.failUnlessEqual(set(b.keys()), set([0,1,2]))
self.failUnlessEqual(b[0].remote_read(0, 25), "%25d" % 0)
+ b_str = str(b[0])
+ self.failUnless("BucketReader" in b_str, b_str)
+ self.failUnless("mfwgy33dmf2g 0" in b_str, b_str)
# now if we ask about writing again, the server should offer those
# three buckets as already present. It should offer them even if we