mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
add tests for factoids.alias
This commit is contained in:
parent
50ac5a05e1
commit
9b516480af
@ -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