Updated to fix a bug in Config.help and a bug in the test for Config.list.

This commit is contained in:
Jeremy Fincher 2004-04-18 02:40:18 +00:00
parent 9be3ea075e
commit 119619d437
2 changed files with 5 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class Config(callbacks.Privmsg):
name = privmsgs.getArgs(args)
name = self._canonicalizeName(name)
wrapper = getWrapper(name)
if wrapper.help:
if hasattr(wrapper, 'help'):
irc.reply(wrapper.help)
else:
irc.error('%s has no help.' % name)

View File

@ -31,8 +31,11 @@
from testsupport import *
import conf
class ConfigTestCase(ChannelPluginTestCase):
plugins = ('Config',)
# We add utilities so there's something in supybot.plugins.
plugins = ('Config', 'Ebay')
def testGet(self):
self.assertNotRegexp('config get supybot.reply', r'registry\.Group')