From d2aa7c9d21434e0b18dccf15731277d59394f3c1 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 9 Aug 2010 12:20:59 +0200 Subject: [PATCH] Fix formatting --- mopidy/mpd/frontend.py | 4 +++- tests/mpd/music_db_test.py | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mopidy/mpd/frontend.py b/mopidy/mpd/frontend.py index 1a37fa1b..cc70b938 100644 --- a/mopidy/mpd/frontend.py +++ b/mopidy/mpd/frontend.py @@ -680,7 +680,9 @@ class MpdFrontend(object): Lists all tags of the specified type. ``TYPE`` should be ``album``, ``artist``, ``date``, or ``genre``. - ``ARTIST`` is an optional parameter when type is ``album``, ``date``, or ``genre`` + ``ARTIST`` is an optional parameter when type is ``album``, + ``date``, or ``genre``. + This filters the result list by an artist. *GMPC:* diff --git a/tests/mpd/music_db_test.py b/tests/mpd/music_db_test.py index 5256ada4..b8feb65f 100644 --- a/tests/mpd/music_db_test.py +++ b/tests/mpd/music_db_test.py @@ -45,7 +45,8 @@ class MusicDatabaseHandlerTest(unittest.TestCase): self.assertEqual(result[0], u'ACK [2@0] {find} incorrect arguments') def test_find_album_and_artist(self): - result = self.h.handle_request(u'find album "album_what" artist "artist_what"') + result = self.h.handle_request( + u'find album "album_what" artist "artist_what"') self.assert_(u'OK' in result) def test_findadd(self): @@ -75,7 +76,7 @@ class MusicDatabaseHandlerTest(unittest.TestCase): def test_list_album_with_artist(self): result = self.h.handle_request(u'list "album" "anartist"') self.assert_(u'OK' in result) - + def test_list_album_artist_with_artist_without_quotes(self): result = self.h.handle_request(u'list album artist "anartist"') self.assert_(u'OK' in result)