Changed command names to be more generic.

This commit is contained in:
Jeremy Fincher 2003-10-21 05:06:36 +00:00
parent 0f30bbc359
commit 907979b284
2 changed files with 8 additions and 8 deletions

View File

@ -248,7 +248,7 @@ buildings = {
class OSU(callbacks.Privmsg): class OSU(callbacks.Privmsg):
threaded = True threaded = True
def osuemail(self, irc, msg, args): def email(self, irc, msg, args):
"""<first name> <middle initial> <last name> """<first name> <middle initial> <last name>
Returns possible email address matches for the given name. Returns possible email address matches for the given name.
@ -272,7 +272,7 @@ class OSU(callbacks.Privmsg):
except Exception, e: except Exception, e:
irc.error(msg, debug.exnToString(e)) irc.error(msg, debug.exnToString(e))
def osubuilding(self, irc, msg, args): def building(self, irc, msg, args):
"""<building abbreviation> """<building abbreviation>
Returns the address and full name of an OSU building based on its Returns the address and full name of an OSU building based on its

View File

@ -34,14 +34,14 @@ from test import *
class OSUTestCase(PluginTestCase, PluginDocumentation): class OSUTestCase(PluginTestCase, PluginDocumentation):
plugins = ('OSU',) plugins = ('OSU',)
def testOsuemail(self): def testOsuemail(self):
self.assertResponse('osuemail jeremiah fincher', 'fincher.8@osu.edu') self.assertResponse('osu email jeremiah fincher', 'fincher.8@osu.edu')
self.assertResponse('osuemail jeremiah d fincher', 'fincher.8@osu.edu') self.assertResponse('osu email jeremiah d fincher','fincher.8@osu.edu')
def testOsubuilding(self): def testOsubuilding(self):
self.assertRegexp('osubuilding DL', '^Dreese Lab') self.assertRegexp('osu building DL', '^Dreese Lab')
self.assertRegexp('osubuilding Dl', '^Dreese Lab') self.assertRegexp('osu building Dl', '^Dreese Lab')
self.assertRegexp('osubuilding dL', '^Dreese Lab') self.assertRegexp('osu building dL', '^Dreese Lab')
self.assertRegexp('osubuilding dl', '^Dreese Lab') self.assertRegexp('osu building dl', '^Dreese Lab')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: