changes to test.py

This commit is contained in:
Julian Paul Glass 2014-12-10 01:45:31 +00:00
parent 1d0685e02f
commit 92824116c5
1 changed files with 2 additions and 2 deletions

View File

@ -133,9 +133,9 @@ class MessageParserTestCase(ChannelPluginTestCase):
self.assertRegexp('messageparser list',
'There are no regexp triggers in the database\.')
self.assertNotError('messageparser add "stuff" "echo i saw some stuff"')
self.assertRegexp('messageparser list', '"stuff" \(1\)')
self.assertRegexp('messageparser list', '\(1\) "stuff"')
self.assertNotError('messageparser add "aoeu" "echo vowels are nice!"')
self.assertRegexp('messageparser list', '"stuff" \(1\), "aoeu" \(2\)')
self.assertRegexp('messageparser list', '\(1\) "stuff", \(2\) "aoeu"')
def testRemove(self):
self.assertError('messageparser remove "stuff"')