From: Zooko O'Whielacronx Date: Sun, 18 Jul 2010 03:17:10 +0000 (-0700) Subject: benchmarking: update bench_dirnode.py to reflect the new directory interfaces X-Git-Url: https://git.rkrishnan.org/vdrive/components/com_hotproperty/status?a=commitdiff_plain;h=6a7023efbe69779bef0b932e6c0e05e0ad9ec13f;p=tahoe-lafs%2Ftahoe-lafs.git benchmarking: update bench_dirnode.py to reflect the new directory interfaces --- diff --git a/src/allmydata/test/bench_dirnode.py b/src/allmydata/test/bench_dirnode.py index ffc6637c..676f0021 100644 --- a/src/allmydata/test/bench_dirnode.py +++ b/src/allmydata/test/bench_dirnode.py @@ -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: