]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
benchmarking: update bench_dirnode.py to reflect the new directory interfaces
authorZooko O'Whielacronx <zooko@zooko.com>
Sun, 18 Jul 2010 03:17:10 +0000 (20:17 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sun, 18 Jul 2010 03:17:10 +0000 (20:17 -0700)
src/allmydata/test/bench_dirnode.py

index ffc6637c009842ffd008b9c1636670df4f2abd20..676f00219e9e77f0db4d54be423da80036ef2fd2 100644 (file)
@@ -24,10 +24,17 @@ class ContainerNode:
         return self._cap.to_string()
     def is_readonly(self):
         return False
-class FakeNodeMaker:
-    def create_from_cap(self, writecap, readcap=None):
+    def is_mutable(self):
+        return True
+
+class FakeNode:
+    def raise_error(self):
         return None
 
+class FakeNodeMaker:
+    def create_from_cap(self, writecap, readcap=None, deep_immutable=False, name=''):
+        return FakeNode()
+
 def random_unicode(l):
     while True:
         try: