diff --git a/tests/backends/base.py b/tests/backends/base.py index b9c1a389..67498788 100644 --- a/tests/backends/base.py +++ b/tests/backends/base.py @@ -13,7 +13,8 @@ from tests import SkipTest __all__ = ['BaseCurrentPlaylistControllerTest', 'BasePlaybackControllerTest', - 'BaseStoredPlaylistsControllerTest'] + 'BaseStoredPlaylistsControllerTest', + 'BaseLibraryControllerTest'] def populate_playlist(func): def wrapper(self): @@ -963,3 +964,12 @@ class BaseStoredPlaylistsControllerTest(object): playlist = Playlist(name='test') self.stored.save(playlist) self.assert_(playlist in self.stored.playlists) + + +class BaseLibraryControllerTest(object): + def setUp(self): + self.backend = self.backend_class(mixer=DummyMixer()) + self.controller = self.backend.library + + def tearDown(self): + self.backend.destroy() diff --git a/tests/backends/gstreamer_test.py b/tests/backends/gstreamer_test.py index 6d010b9b..78c591aa 100644 --- a/tests/backends/gstreamer_test.py +++ b/tests/backends/gstreamer_test.py @@ -121,5 +121,12 @@ class GStreamerBackendStoredPlaylistsControllerTest(BaseStoredPlaylistsControlle def test_save_sets_playlist_uri(self): raise SkipTest + +class GStreamerBackendLibraryControllerTest(BaseStoredPlaylistsControllerTest, + unittest.TestCase): + + backend_class = GStreamerBackend + + if __name__ == '__main__': unittest.main()