mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Added an assert to verify that a toggle without a specified channel only
toggles the value of the current channel and not the default toggle.
This commit is contained in:
parent
4d8e8807b9
commit
1558635250
@ -43,6 +43,8 @@ class ToggleDictionaryTestCase(unittest.TestCase):
|
||||
## self.assertEqual(t['#baz']['foo'], True)
|
||||
self.assertEqual(t.get('foo'), True)
|
||||
self.assertEqual(t.get('foo', '#baz'), True)
|
||||
t.toggle('foo', value=False)
|
||||
self.assertEqual(t.get('foo', '#baz'), True)
|
||||
t.toggle('foo', value=False, channel='#baz')
|
||||
self.assertEqual(t.get('foo', '#baz'), False)
|
||||
t.toggle('foo', channel='#baz')
|
||||
|
Loading…
Reference in New Issue
Block a user