From: Brian Warner Date: Mon, 9 Mar 2009 03:05:27 +0000 (-0700) Subject: storage: add test coverage for BucketReader.__repr__ X-Git-Tag: allmydata-tahoe-1.4.0~75 X-Git-Url: https://git.rkrishnan.org/components/%22news.html/...?a=commitdiff_plain;h=02b40ec4996fb73561ab8046a79c8ef90f172987;p=tahoe-lafs%2Ftahoe-lafs.git storage: add test coverage for BucketReader.__repr__ --- diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index 49734ea3..cff63037 100644 --- 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