mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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.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):
|
||||
def testCapabilities(self):
|
||||
|
Loading…
Reference in New Issue
Block a user