mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 14:59:49 +00:00
oragono-specific test for unregistered lusers counts
This commit is contained in:
@ -116,6 +116,9 @@ class LusersUnregisteredTestCase(LusersTestCase):
|
||||
|
||||
@cases.SpecificationSelector.requiredBySpecification('RFC2812')
|
||||
def testLusers(self):
|
||||
self.doLusersTest()
|
||||
|
||||
def doLusersTest(self):
|
||||
self.connectClient('bar', name='bar')
|
||||
lusers = self.getLusers('bar')
|
||||
self.assertEqual(lusers.Unregistered, 0)
|
||||
@ -180,6 +183,27 @@ class LusersUnregisteredTestCase(LusersTestCase):
|
||||
self.assertEqual(lusers.LocalMax, 2)
|
||||
|
||||
|
||||
class LusersUnregisteredDefaultInvisibleTest(LusersUnregisteredTestCase):
|
||||
"""Same as above but with +i as the default."""
|
||||
|
||||
def customizedConfig(self):
|
||||
conf = self.controller.baseConfig()
|
||||
conf['accounts']['default-user-modes'] = '+i'
|
||||
return conf
|
||||
|
||||
@cases.SpecificationSelector.requiredBySpecification('Oragono')
|
||||
def testLusers(self):
|
||||
self.doLusersTest()
|
||||
lusers = self.getLusers('bar')
|
||||
self.assertEqual(lusers.Unregistered, 0)
|
||||
self.assertEqual(lusers.GlobalTotal, 2)
|
||||
self.assertEqual(lusers.GlobalMax, 2)
|
||||
self.assertEqual(lusers.GlobalInvisible, 2)
|
||||
self.assertEqual(lusers.GlobalVisible, 0)
|
||||
self.assertEqual(lusers.LocalTotal, 2)
|
||||
self.assertEqual(lusers.LocalMax, 2)
|
||||
|
||||
|
||||
class LuserOpersTest(LusersTestCase):
|
||||
|
||||
@cases.SpecificationSelector.requiredBySpecification('Oragono')
|
||||
|
Reference in New Issue
Block a user