diff --git a/pytests/modules/contrib/test_mpd.py b/pytests/modules/contrib/test_mpd.py index eaceb80..fe5451a 100644 --- a/pytests/modules/contrib/test_mpd.py +++ b/pytests/modules/contrib/test_mpd.py @@ -30,3 +30,11 @@ def test_bad_layout(): def test_hidden_on_creation(mpd_module): assert mpd_module.hidden() + +def test_update_calls_load_song(mocker, mpd_module): + mocker.patch.object(mpd_module, '_load_song') + mpd_module.update() + mpd_module._load_song.assert_called_once() + +def test_default_layout(mpd_module): + assert mpd_module._layout == "mpd.prev mpd.main mpd.next mpd.shuffle mpd.repeat"