mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Added some commented out tests in case we decide to change the interface of ToggleDictionary.
This commit is contained in:
parent
acd36c80d4
commit
5617dd6843
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user