From 6a7023efbe69779bef0b932e6c0e05e0ad9ec13f Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Sat, 17 Jul 2010 20:17:10 -0700 Subject: [PATCH] benchmarking: update bench_dirnode.py to reflect the new directory interfaces --- src/allmydata/test/bench_dirnode.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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: -- 2.45.2