diff --git a/test/test_Infobot.py b/test/test_Infobot.py index 084dcc8e9..c55ba0585 100644 --- a/test/test_Infobot.py +++ b/test/test_Infobot.py @@ -142,4 +142,9 @@ if sqlite is not None: self.assertSnarfNoResponse('what?', 3) self.assertRegexp('roses?', 'roses are red') + def testAddressedQuestions(self): + self.assertNotError('hi is Hello, $who.') + self.assertSnarfRegexp('hi', 'Hello') + self.assertRegexp('hi', 'Hello') + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/test/test_User.py b/test/test_User.py index 452265ba3..eeeb5317b 100644 --- a/test/test_User.py +++ b/test/test_User.py @@ -102,5 +102,12 @@ class UserTestCase(PluginTestCase, PluginDocumentation): self.assertNotError('load FunDB') self.assertNotError('user stats') + def testUserPluginAndUserList(self): + self.prefix = self.prefix1 + self.assertNotError('register Foo bar') + self.assertResponse('user list', 'Foo') + self.assertNotError('load Seen') + self.assertResponse('user list', 'Foo') + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: