benchmarking: update bench_dirnode.py to reflect the new directory interfaces

This commit is contained in:
Zooko O'Whielacronx 2010-07-17 20:17:10 -07:00
parent bdb10553eb
commit 6a7023efbe

View 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: