Add @populate_playlist to some tests

This commit is contained in:
Thomas Adamcik 2010-02-18 03:36:56 +01:00
parent 084c0a8321
commit a01810619c

View File

@ -531,15 +531,18 @@ class BasePlaybackControllerTest(object):
def test_seek_beyond_start_of_song(self):
raise NotImplementedError
@populate_playlist
def test_stop_when_stopped(self):
self.playback.stop()
self.assertEqual(self.playback.state, self.playback.STOPPED)
@populate_playlist
def test_stop_when_playing(self):
self.playback.play()
self.playback.stop()
self.assertEqual(self.playback.state, self.playback.STOPPED)
@populate_playlist
def test_stop_when_paused(self):
self.playback.play()
self.playback.pause()