From 4b4ae201559a6135c44a0b8b29d06d1ab0f956f2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 19 Oct 2003 14:58:08 +0000 Subject: [PATCH] Changed the Dict plugin to Dictionary. --- plugins/{Dict.py => Dictionary.py} | 6 +++--- test/{test_Dict.py => test_Dictionary.py} | 13 ++----------- 2 files changed, 5 insertions(+), 14 deletions(-) rename plugins/{Dict.py => Dictionary.py} (98%) rename test/{test_Dict.py => test_Dictionary.py} (82%) diff --git a/plugins/Dict.py b/plugins/Dictionary.py similarity index 98% rename from plugins/Dict.py rename to plugins/Dictionary.py index 35c3220bb..ac8364dae 100644 --- a/plugins/Dict.py +++ b/plugins/Dictionary.py @@ -54,7 +54,7 @@ def configure(onStart, afterConnect, advanced): # like to be run when the bot is started; append to afterConnect the # commands you would like to be run when the bot has finished connecting. from questions import expect, anything, something, yn - onStart.append('load Dict') + onStart.append('load Dictionary') print 'The default dictd server is dict.org.' if yn('Would you like to specify a dictd server?') == 'y': server = something('What server?') @@ -69,7 +69,7 @@ example = utils.wrapLines(""" jemfinch: foldoc """) -class Dict(callbacks.Privmsg): +class Dictionary(callbacks.Privmsg): threaded = True dictServer = 'dict.org' def __init__(self): @@ -146,6 +146,6 @@ class Dict(callbacks.Privmsg): irc.reply(msg, s) -Class = Dict +Class = Dictionary # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/test/test_Dict.py b/test/test_Dictionary.py similarity index 82% rename from test/test_Dict.py rename to test/test_Dictionary.py index 959738632..0794329ac 100644 --- a/test/test_Dict.py +++ b/test/test_Dictionary.py @@ -31,17 +31,8 @@ from test import * -class DictTestCase(PluginTestCase, PluginDocumentation): - plugins = ('Dict', 'MiscCommands') - def testHelps(self): - self.assertNotError('list Dict') - self.assertNotError('syntax dict') - self.assertNotError('help dict') - self.assertNotError('syntax dictionaries') - self.assertNotError('help dictionaries') - self.assertNotError('syntax randomdictionary') - self.assertNotError('help randomdictionary') - +class DictionaryTestCase(PluginTestCase, PluginDocumentation): + plugins = ('Dictionary', 'MiscCommands') def testDict(self): self.assertNotError('dict slash') self.assertNotRegexp('dict web1913 slash', 'foldoc')