Add uri handler test

This commit is contained in:
Thomas Adamcik 2010-04-26 21:22:52 +02:00
parent 221d5901fd
commit 4c160dd418
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class GStreamerBackend(BaseBackend):
self.playback = GStreamerPlaybackController(self)
self.stored_playlists = GStreamerStoredPlaylistsController(self)
self.current_playlist = BaseCurrentPlaylistController(self)
self.uri_handlers = [u'file:']
class GStreamerPlaybackController(BasePlaybackController):

View File

@ -30,6 +30,9 @@ class GStreamerPlaybackControllerTest(BasePlaybackControllerTest, unittest.TestC
track = Track(uri=uri, id=1, length=4464)
self.backend.current_playlist.add(track)
def test_uri_handler(self):
self.assert_('file:' in self.backend.uri_handlers)
def test_play_mp3(self):
self.add_track('blank.mp3')
self.playback.play()