Made sure ChannelPluginTestCase actually joined the channel in setUp.

This commit is contained in:
Jeremy Fincher 2003-09-29 04:36:05 +00:00
parent fe4af22e50
commit 6e23e1d080

View File

@ -222,6 +222,11 @@ class PluginTestCase(unittest.TestCase):
class ChannelPluginTestCase(PluginTestCase): class ChannelPluginTestCase(PluginTestCase):
channel = '#test' channel = '#test'
def setUp(self):
PluginTestCase.setUp(self)
self.irc.feedMsg(ircmsgs.join(self.channel, prefix=self.prefix))
def _feedMsg(self, query, timeout=None): def _feedMsg(self, query, timeout=None):
if timeout is None: if timeout is None:
timeout = self.timeout timeout = self.timeout