mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added User.list command to list registered users.
This commit is contained in:
parent
23d81ec0cd
commit
4c4fbaccc1
@ -44,6 +44,18 @@ class UserTestCase(PluginTestCase, PluginDocumentation):
|
||||
self.failUnless(ircdb.users.getUserId('foo'))
|
||||
self.assertNotError('unregister foo bar')
|
||||
self.assertRaises(KeyError, ircdb.users.getUserId, 'foo')
|
||||
|
||||
def testList(self):
|
||||
self.prefix = self.prefix1
|
||||
self.assertNotError('register foo bar')
|
||||
self.assertResponse('user list', 'foo')
|
||||
self.prefix = self.prefix2
|
||||
self.assertNotError('register biff quux')
|
||||
self.assertResponse('user list', 'biff and foo')
|
||||
self.assertNotError('unregister biff quux')
|
||||
self.assertResponse('user list', 'foo')
|
||||
self.assertNotError('unregister foo bar')
|
||||
self.assertRegexp('user list', 'no registered users')
|
||||
|
||||
def testChangeUsername(self):
|
||||
self.prefix = self.prefix1
|
||||
|
Loading…
Reference in New Issue
Block a user