Add helper functions to Server and more tests.

This commit is contained in:
2013-11-07 00:35:14 +00:00
parent 0bfb9973d4
commit 1d2857f628
2 changed files with 29 additions and 1 deletions

View File

@@ -54,6 +54,11 @@ class Server(object):
return Channel(self, channel)
def get_channel_by_name(self, channel_name):
for channel in self.get_channels():
if channel.name == channel_name:
return channel
def set_channel_state(self, channel):
self.__server.setChannelState(channel)