diff --git a/tests/frontends/mpd/protocol/music_db_test.py b/tests/frontends/mpd/protocol/music_db_test.py index 0f6bbf10..3e0439e6 100644 --- a/tests/frontends/mpd/protocol/music_db_test.py +++ b/tests/frontends/mpd/protocol/music_db_test.py @@ -952,6 +952,18 @@ class MusicDatabaseSearchTest(protocol.BaseTestCase): self.sendRequest('search "date" ""') self.assertInResponse('OK') + def test_search_comment(self): + self.sendRequest('search "comment" "acomment"') + self.assertInResponse('OK') + + def test_search_comment_without_quotes(self): + self.sendRequest('search comment "acomment"') + self.assertInResponse('OK') + + def test_search_comment_without_filter_value(self): + self.sendRequest('search "comment" ""') + self.assertInResponse('OK') + def test_search_else_should_fail(self): self.sendRequest('search "sometype" "something"') self.assertEqualResponse('ACK [2@0] {search} incorrect arguments')