From f4a5d05c1ec7932a838ec5294fce4feca09a6188 Mon Sep 17 00:00:00 2001 From: Ambika Nair Date: Fri, 19 Jun 2020 05:00:56 -0400 Subject: [PATCH] Got state function test for shuffle working --- pytests/modules/contrib/test_mpd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pytests/modules/contrib/test_mpd.py b/pytests/modules/contrib/test_mpd.py index e4bbb70..77bb253 100644 --- a/pytests/modules/contrib/test_mpd.py +++ b/pytests/modules/contrib/test_mpd.py @@ -9,3 +9,8 @@ def mpd_module(): def test_shuffle_off_by_default(mpd_module): assert not mpd_module._shuffle + +def test_shuffle_state(mocker, mpd_module): + widget = mocker.Mock() + widget.name = 'mpd.shuffle' + assert mpd_module.state(widget) == 'shuffle-off'