Add a test for Infobot not responding to directly addressed commands.

Add a test for some wonkiness with @user list when User and Seen are loaded.
This commit is contained in:
James Vega 2004-09-21 04:59:13 +00:00
parent 09e60502cf
commit fb56c08278
2 changed files with 12 additions and 0 deletions

View File

@ -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 <reply>Hello, $who.')
self.assertSnarfRegexp('hi', 'Hello')
self.assertRegexp('hi', 'Hello')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -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: