From 5ddd26cc699f0a019f8be01e96bd615913fd1815 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 24 Oct 2003 21:59:49 +0000 Subject: [PATCH] Fixed a bugger in Misc.py. --- src/Misc.py | 2 +- test/test_callbacks.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Misc.py b/src/Misc.py index 0601f9461..4bf211317 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -98,7 +98,7 @@ class Misc(callbacks.Privmsg): 'Please specify the plugin whose command you ' \ 'wish to call by using its name as a command ' \ 'before calling it.' % \ - (command, utils.commaAndify(names), command) + (command, utils.commaAndify(names)) else: L = [] while ambiguousCommands: diff --git a/test/test_callbacks.py b/test/test_callbacks.py index 6cf16a0c3..c065089b3 100644 --- a/test/test_callbacks.py +++ b/test/test_callbacks.py @@ -241,6 +241,11 @@ class PrivmsgTestCase(ChannelPluginTestCase): self.assertResponse('first firstcmd', 'foo') self.assertResponse('firstrepeat firstcmd', 'baz') + def testAmbiguousHelpError(self): + self.irc.addCallback(self.First()) + self.irc.addCallback(self.FirstRepeat()) + self.assertError('help first') + def testHelpDispatching(self): self.irc.addCallback(self.First()) self.assertHelp('help firstcmd') @@ -280,7 +285,7 @@ class PrivmsgCommandAndRegexpTestCase(PluginTestCase): raise callbacks.ArgumentError def testNoEscapingArgumentError(self): self.irc.addCallback(self.PCAR()) - self.assertResponse('test', 'PCAR test ') + self.assertResponse('test', 'test ') # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: