From: Brian Warner Date: Wed, 18 Jun 2008 00:44:10 +0000 (-0700) Subject: test_storage: yet more coverage X-Git-Tag: allmydata-tahoe-1.2.0~80 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=c09c342718e40f6447e9a5375af28efec7337ed4;p=tahoe-lafs%2Ftahoe-lafs.git test_storage: yet more coverage --- diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index c517f5e2..fd1a6df5 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -889,6 +889,16 @@ class MutableServer(unittest.TestCase): self.failUnlessEqual(read("si1", [0], [(0,100)]), {0: [data]}) reset() + # finally, test some operators against empty shares + answer = write("si1", secrets, {1: ([(10, 5, "eq", "11112"), + ], + [(0, "x"*100)], + None, + )}, [(10,5)]) + self.failUnlessEqual(answer, (False, {0: ["11111"]})) + self.failUnlessEqual(read("si1", [0], [(0,100)]), {0: [data]}) + reset() + def test_readv(self): ss = self.create("test_readv") secrets = ( self.write_enabler("we1"),