Adjust fragile test criteria in test_next_with_random

This commit is contained in:
Thomas Adamcik 2010-04-06 23:31:16 +02:00
parent 560275edca
commit a165304da7

View File

@ -723,11 +723,12 @@ class BasePlaybackControllerTest(object):
@populate_playlist
def test_next_with_random(self):
# FIXME feels very fragile
random.seed(1)
self.playback.random = True
self.playback.play()
self.playback.next()
self.assertEqual(self.playback.current_track, self.tracks[1])
self.assertEqual(self.playback.current_track, self.tracks[2])
@populate_playlist
def test_previous_with_random(self):