Changed the name of the Google plugin to GoogleTools.

This commit is contained in:
Jeremy Fincher 2003-10-18 13:25:12 +00:00
parent f92d03e3a3
commit aab016ddd1
2 changed files with 11 additions and 5 deletions

View File

@ -83,7 +83,7 @@ def configure(onStart, afterConnect, advanced):
example = utils.wrapLines("""
<jemfinch> @list google
<jemfinch> @list googletools
<supybot> google, googlefight, googleinfo, googlelicensekey, googlesite, googlespell, metagoogle
<jemfinch> @google jemfinch
<supybot> [Twisted-commits] Like, you know, a bugfix. jemfinch reported.: http://twistedmatrix.com/pipermail/twisted-commits/2002-August/002956.html :: Character Analysis of JemFinch NetEssays.NET - Thousands of FREE ...: http://www.netessays.net/viewpaper/1379.html :: SourceForge.net: Developer Profile: http://sourceforge.net/users/jemfinch/ (search took 0.174663 seconds)
@ -114,7 +114,7 @@ def search(*args, **kwargs):
last24hours.dequeue()
return data
class Google(callbacks.PrivmsgCommandAndRegexp):
class GoogleTools(callbacks.PrivmsgCommandAndRegexp):
threaded = True
regexps = sets.Set(['googleSnarfer', 'googleGroups'])
def __init__(self):
@ -313,6 +313,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
Class = Google
Class = GoogleTools
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -31,8 +31,13 @@
from test import *
class GoogleTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Google',)
class GoogleToolsTestCase(PluginTestCase, PluginDocumentation):
plugins = ('GoogleTools',)
def testGroupsSnarfer(self):
self.assertRegexp('http://groups.google.com/groups?dq=&hl=en&'
'lr=lang_en&ie=UTF-8&oe=UTF-8&selm=698f09f8.'
'0310132012.738e22fc%40posting.google.com',
r'comp\.lang\.python.*question: usage of __slots__')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: