mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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['#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)
|
||||||
|
self.assertEqual(t.get('foo', '#baz'), True)
|
||||||
t.toggle('foo', value=False, channel='#baz')
|
t.toggle('foo', value=False, channel='#baz')
|
||||||
self.assertEqual(t.get('foo', '#baz'), False)
|
self.assertEqual(t.get('foo', '#baz'), False)
|
||||||
t.toggle('foo', channel='#baz')
|
t.toggle('foo', channel='#baz')
|
||||||
|
Loading…
Reference in New Issue
Block a user