mpd: Rename muting output to 'Mute'

This commit is contained in:
Stein Magnus Jodal 2013-10-10 09:49:15 +02:00
parent b65293d2bc
commit db892e6974
2 changed files with 7 additions and 7 deletions

View File

@ -40,9 +40,9 @@ def outputs(context):
Shows information about all outputs.
"""
enabled = 0 if context.core.playback.get_mute().get() else 1
muted = 1 if context.core.playback.get_mute().get() else 0
return [
('outputid', 0),
('outputname', 'Default'),
('outputenabled', enabled),
('outputname', 'Mute'),
('outputenabled', muted),
]

View File

@ -26,8 +26,8 @@ class AudioOutputHandlerTest(protocol.BaseTestCase):
self.sendRequest('outputs')
self.assertInResponse('outputid: 0')
self.assertInResponse('outputname: Default')
self.assertInResponse('outputenabled: 1')
self.assertInResponse('outputname: Mute')
self.assertInResponse('outputenabled: 0')
self.assertInResponse('OK')
def test_outputs_when_muted(self):
@ -36,6 +36,6 @@ class AudioOutputHandlerTest(protocol.BaseTestCase):
self.sendRequest('outputs')
self.assertInResponse('outputid: 0')
self.assertInResponse('outputname: Default')
self.assertInResponse('outputenabled: 0')
self.assertInResponse('outputname: Mute')
self.assertInResponse('outputenabled: 1')
self.assertInResponse('OK')