mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Changed command names to be more generic.
This commit is contained in:
parent
0f30bbc359
commit
907979b284
@ -248,7 +248,7 @@ buildings = {
|
||||
|
||||
class OSU(callbacks.Privmsg):
|
||||
threaded = True
|
||||
def osuemail(self, irc, msg, args):
|
||||
def email(self, irc, msg, args):
|
||||
"""<first name> <middle initial> <last name>
|
||||
|
||||
Returns possible email address matches for the given name.
|
||||
@ -272,7 +272,7 @@ class OSU(callbacks.Privmsg):
|
||||
except Exception, e:
|
||||
irc.error(msg, debug.exnToString(e))
|
||||
|
||||
def osubuilding(self, irc, msg, args):
|
||||
def building(self, irc, msg, args):
|
||||
"""<building abbreviation>
|
||||
|
||||
Returns the address and full name of an OSU building based on its
|
||||
|
@ -34,14 +34,14 @@ from test import *
|
||||
class OSUTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('OSU',)
|
||||
def testOsuemail(self):
|
||||
self.assertResponse('osuemail jeremiah fincher', 'fincher.8@osu.edu')
|
||||
self.assertResponse('osuemail jeremiah d fincher', 'fincher.8@osu.edu')
|
||||
self.assertResponse('osu email jeremiah fincher', 'fincher.8@osu.edu')
|
||||
self.assertResponse('osu email jeremiah d fincher','fincher.8@osu.edu')
|
||||
|
||||
def testOsubuilding(self):
|
||||
self.assertRegexp('osubuilding DL', '^Dreese Lab')
|
||||
self.assertRegexp('osubuilding Dl', '^Dreese Lab')
|
||||
self.assertRegexp('osubuilding dL', '^Dreese Lab')
|
||||
self.assertRegexp('osubuilding dl', '^Dreese Lab')
|
||||
self.assertRegexp('osu building DL', '^Dreese Lab')
|
||||
self.assertRegexp('osu building Dl', '^Dreese Lab')
|
||||
self.assertRegexp('osu building dL', '^Dreese Lab')
|
||||
self.assertRegexp('osu building dl', '^Dreese Lab')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user