Add frontend MPD tests for 'search comment "foo"'
This commit is contained in:
parent
862b7019e0
commit
9d7db4cf4f
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user