Skip to content

Commit

Permalink
mock qubesdb.rm()
Browse files Browse the repository at this point in the history
  • Loading branch information
3hhh committed May 15, 2021
1 parent 1960148 commit dda500b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qubesagent/test_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ def read(self, key):
except KeyError:
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):
result = {}
for key, value in self.entries.items():
Expand Down

0 comments on commit dda500b

Please sign in to comment.