mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
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:
parent
09e60502cf
commit
fb56c08278
@ -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:
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user