Add test_next_track_after_previous

This commit is contained in:
Thomas Adamcik 2010-02-14 16:45:07 +01:00
parent 41da0656c6
commit 3b089b2b13

View File

@ -332,7 +332,15 @@ class BasePlaybackControllerTest(object):
self.playback.play()
self.assertEqual(self.playback.next_track, tracks[1])
@populate_playlist
def test_next_track_after_previous(self):
tracks = self.backend.current_playlist.playlist.tracks
self.playback.play()
self.playback.next()
self.playback.previous()
self.assertEqual(self.playback.next_track, tracks[1])
def test_next_track_empty_playlist(self):
raise NotImplementedError
@populate_playlist