mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added test for IrcSet.
This commit is contained in:
parent
e4143b467a
commit
7081d64124
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user