Find exact with no hits test and impl.

This commit is contained in:
Thomas Adamcik 2010-04-30 21:13:32 +02:00
parent b6fbc0bce9
commit f1453732dc
2 changed files with 5 additions and 1 deletions

View File

@ -199,3 +199,6 @@ class GStreamerLibraryController(BaseLibraryController):
return self._uri_mapping[uri]
except KeyError:
raise LookupError
def find_exact(self, type, query):
return Playlist()

View File

@ -1011,7 +1011,8 @@ class BaseLibraryControllerTest(object):
self.assertRaises(LookupError, test)
def test_find_exact_no_hits(self):
raise SkipTest
result = self.library.find_exact('track', 'unknown track')
self.assertEqual(result, Playlist())
def test_find_exact_artist(self):
raise SkipTest