mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added test to make sure reloading sets doesn't kill the subclasses of sets.Set (which may in the future not be subclasses of sets.Set.
This commit is contained in:
parent
077fcd8d7e
commit
f27ba11741
@ -181,6 +181,13 @@ class UserCapabilitySetTestCase(unittest.TestCase):
|
|||||||
self.failIf(s.check('-foo'))
|
self.failIf(s.check('-foo'))
|
||||||
self.failUnless(s.check('foo'))
|
self.failUnless(s.check('foo'))
|
||||||
|
|
||||||
|
def testWorksAfterReload(self):
|
||||||
|
s = ircdb.UserCapabilitySet(['owner'])
|
||||||
|
self.failUnless(s.check('owner'))
|
||||||
|
import sets
|
||||||
|
reload(sets)
|
||||||
|
self.failUnless(s.check('owner'))
|
||||||
|
|
||||||
|
|
||||||
class IrcUserTestCase(unittest.TestCase):
|
class IrcUserTestCase(unittest.TestCase):
|
||||||
def testCapabilities(self):
|
def testCapabilities(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user