Added some commented out tests in case we decide to change the interface of ToggleDictionary.

This commit is contained in:
Jeremy Fincher 2003-10-29 00:05:34 +00:00
parent acd36c80d4
commit 5617dd6843

View File

@ -36,6 +36,8 @@ import plugins
class ToggleDictionaryTestCase(unittest.TestCase):
def test(self):
t = plugins.ToggleDictionary({'foo': True})
## self.assertEqual(t['foo'], True)
## self.assertEqual(t['#baz']['foo'], True)
self.assertEqual(t.get('foo'), True)
self.assertEqual(t.get('foo', '#baz'), True)
t.toggle('foo', value=False, channel='#baz')