mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05: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):
|
def _feedMsg(self, query, timeout=None):
|
||||||
if timeout is None:
|
if timeout is None:
|
||||||
timeout = self.timeout
|
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()
|
fed = time.time()
|
||||||
response = self.irc.takeMsg()
|
response = self.irc.takeMsg()
|
||||||
while response is None and time.time() - fed < timeout:
|
while response is None and time.time() - fed < timeout:
|
||||||
@ -151,7 +152,8 @@ class PluginTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def feedMsg(self, query):
|
def feedMsg(self, query):
|
||||||
"""Just feeds it a message, that's all."""
|
"""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
|
# 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.
|
# do them would be to use a proxy for the irc object and intercept .error.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user