Adding fake mode support to the delete_queue function.
This commit is contained in:
parent
b3796b6dea
commit
5d9adefd50
@ -48,9 +48,8 @@ class FakeGuest(object):
|
||||
if database['_name'] in self.dbs:
|
||||
del self.dbs[database['_name']]
|
||||
|
||||
def delete_user(self, user):
|
||||
if user['_name'] in self.users:
|
||||
del self.users[user['_name']]
|
||||
def delete_queue(self):
|
||||
pass
|
||||
|
||||
def enable_root(self):
|
||||
self.root_was_enabled = True
|
||||
@ -60,6 +59,10 @@ class FakeGuest(object):
|
||||
"_databases": [],
|
||||
})
|
||||
|
||||
def delete_user(self, user):
|
||||
if user['_name'] in self.users:
|
||||
del self.users[user['_name']]
|
||||
|
||||
def is_root_enabled(self):
|
||||
return self.root_was_enabled
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user