mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +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):
|
class ToggleDictionaryTestCase(unittest.TestCase):
|
||||||
def test(self):
|
def test(self):
|
||||||
t = plugins.ToggleDictionary({'foo': True})
|
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'), True)
|
||||||
self.assertEqual(t.get('foo', '#baz'), True)
|
self.assertEqual(t.get('foo', '#baz'), True)
|
||||||
t.toggle('foo', value=False, channel='#baz')
|
t.toggle('foo', value=False, channel='#baz')
|
||||||
|
Loading…
Reference in New Issue
Block a user