Adding fake mode support to the delete_queue function.

This commit is contained in:
Tim Simpson 2012-07-06 10:05:08 -05:00
parent b3796b6dea
commit 5d9adefd50

View File

@ -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