From f27ba117418fab9c0af4ce2664b6092ab088bdf5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 2 Nov 2003 19:01:03 +0000 Subject: [PATCH] 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. --- test/test_ircdb.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_ircdb.py b/test/test_ircdb.py index 5f3b25fc4..808163882 100644 --- a/test/test_ircdb.py +++ b/test/test_ircdb.py @@ -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):