mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fixed to use the proper nick.
This commit is contained in:
parent
d2ec31c45b
commit
b34b6efd14
@ -137,7 +137,8 @@ class PluginTestCase(unittest.TestCase):
|
||||
def _feedMsg(self, query, timeout=None):
|
||||
if timeout is None:
|
||||
timeout = self.timeout
|
||||
self.irc.feedMsg(ircmsgs.privmsg(self.nick, query, prefix=self.prefix))
|
||||
self.irc.feedMsg(ircmsgs.privmsg(self.irc.nick, query,
|
||||
prefix=self.prefix))
|
||||
fed = time.time()
|
||||
response = self.irc.takeMsg()
|
||||
while response is None and time.time() - fed < timeout:
|
||||
@ -151,7 +152,8 @@ class PluginTestCase(unittest.TestCase):
|
||||
|
||||
def feedMsg(self, query):
|
||||
"""Just feeds it a message, that's all."""
|
||||
self.irc.feedMsg(ircmsgs.privmsg(self.nick, query, prefix=self.prefix))
|
||||
self.irc.feedMsg(ircmsgs.privmsg(self.irc.nick, query,
|
||||
prefix=self.prefix))
|
||||
|
||||
# These assertError/assertNoError are somewhat fragile. The proper way to
|
||||
# do them would be to use a proxy for the irc object and intercept .error.
|
||||
|
Loading…
Reference in New Issue
Block a user