Added test for IrcSet.

This commit is contained in:
Jeremy Fincher 2003-09-23 15:52:36 +00:00
parent e4143b467a
commit 7081d64124

View File

@ -199,6 +199,17 @@ class IrcDictTestCase(unittest.TestCase):
d['#fOOBAR[]'] = 'blah'
self.assertEqual('blah', d['#foobar{}'])
class IrcSetTestCase(unittest.TestCase):
def test(self):
s = ircutils.IrcSet()
s.add('foo')
s.add('bar')
self.failUnless('foo' in s)
self.failUnless('FOO' in s)
s.discard('alfkj')
s.remove('FOo')
self.failIf('foo' in s)
self.failIf('FOo' in s)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: