From c09c342718e40f6447e9a5375af28efec7337ed4 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 17 Jun 2008 17:44:10 -0700 Subject: [PATCH] test_storage: yet more coverage --- src/allmydata/test/test_storage.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"), -- 2.45.2