Expand unit test coverage for source plugin.

- Added testValidateChannelDB
- Fixed channel validation not considering deleted server
This commit is contained in:
Stefan Hacker
2013-03-23 10:35:40 +01:00
parent 23ce059c98
commit 28195110c0
2 changed files with 30 additions and 4 deletions

View File

@@ -136,6 +136,11 @@ class source(MumoModule):
# Channel no longer exists
log.debug("(%d) Channel %d no longer exists. Dropped.", sid, cid)
self.db.dropChannel(sid, cid)
except AttributeError:
# Server no longer exists
assert(current_mumble_server == None)
log.debug("(%d) Server for channel %d no longer exists. Dropped.", sid, cid)
self.db.dropChannel(sid, cid)
def disconnected(self): pass