mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
add tests for factoids.alias
This commit is contained in:
parent
a3f7adaa8c
commit
f988736ca6
@ -170,6 +170,15 @@ class FactoidsTestCase(ChannelPluginTestCase):
|
||||
conf.supybot.plugins.Factoids.\
|
||||
replyWhenInvalidCommand.setValue(orig)
|
||||
|
||||
def testAlias(self):
|
||||
self.assertNotError('learn foo as bar')
|
||||
self.assertNotError('alias foo zoog')
|
||||
self.assertRegexp('whatis zoog', 'bar')
|
||||
self.assertNotError('learn foo as snorp')
|
||||
self.assertError('alias foo gnoop')
|
||||
self.assertNotError('alias foo gnoop 2')
|
||||
self.assertRegexp('whatis gnoop', 'snorp')
|
||||
|
||||
def testRank(self):
|
||||
self.assertNotError('learn foo as bar')
|
||||
self.assertNotError('learn moo as cow')
|
||||
|
Loading…
Reference in New Issue
Block a user