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:
Jeremy Fincher 2003-11-02 19:01:03 +00:00
parent 077fcd8d7e
commit f27ba11741
1 changed files with 7 additions and 0 deletions

View File

@ -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):