mock qubesdb.rm()
This commit is contained in:
parent
196014831b
commit
dda500b837
@ -29,6 +29,14 @@ class DummyQubesDB(object):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def rm(self, path):
|
||||||
|
if path.endswith('/'):
|
||||||
|
for key in self.entries:
|
||||||
|
if key.startswith(path):
|
||||||
|
self.entries.pop(key)
|
||||||
|
else:
|
||||||
|
self.entries.pop(path)
|
||||||
|
|
||||||
def multiread(self, prefix):
|
def multiread(self, prefix):
|
||||||
result = {}
|
result = {}
|
||||||
for key, value in self.entries.items():
|
for key, value in self.entries.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user