Add more stub tests

This commit is contained in:
Thomas Adamcik 2010-02-14 15:46:23 +01:00
parent 80852f3854
commit 688458549d

View File

@ -290,6 +290,15 @@ class BasePlaybackControllerTest(object):
self.assertEqual(playback.current_track, tracks[-1])
self.assertEqual(playback.playlist_position, len(tracks) - 1)
def test_previous(self):
raise NotImplementedError
def test_previous_triggers_playback(self):
raise NotImplementedError
def test_previous_at_start_of_playlist(self):
raise NotImplementedError
@populate_playlist
def test_next_track_before_play(self):
tracks = self.backend.current_playlist.playlist.tracks
@ -301,6 +310,9 @@ class BasePlaybackControllerTest(object):
self.playback.play()
self.assertEqual(self.playback.next_track, tracks[1])
def test_next_track_after_previous(self):
raise NotImplementedError
@populate_playlist
def test_previous_track_before_play(self):
self.assertEqual(self.playback.previous_track, None)
@ -317,6 +329,9 @@ class BasePlaybackControllerTest(object):
self.playback.next()
self.assertEqual(self.playback.previous_track, tracks[0])
def test_previous_track_after_previous(self):
raise NotImplementedError
@populate_playlist
def test_initial_current_track(self):
tracks = self.backend.current_playlist.playlist.tracks
@ -453,6 +468,9 @@ class BasePlaybackControllerTest(object):
def test_next_with_shuffle(self):
raise NotImplementedError
def test_previous_with_shuffle(self):
raise NotImplementedError
def test_next_track_with_shuffle(self):
raise NotImplementedError