Update tests to match change in previous commit

This commit is contained in:
Stein Magnus Jodal 2011-03-21 00:34:54 +01:00
parent af118a3f25
commit b83dad7845

View File

@ -727,12 +727,18 @@ class PlaybackControllerTest(object):
self.assertEqual(self.playback.stop(), None)
def test_time_position_when_stopped(self):
self.backend.output.get_position = mock.Mock(return_value=0)
future = mock.Mock()
future.get = mock.Mock(return_value=0)
self.backend.output.get_position = mock.Mock(return_value=future)
self.assertEqual(self.playback.time_position, 0)
@populate_playlist
def test_time_position_when_stopped_with_playlist(self):
self.backend.output.get_position = mock.Mock(return_value=0)
future = mock.Mock()
future.get = mock.Mock(return_value=0)
self.backend.output.get_position = mock.Mock(return_value=future)
self.assertEqual(self.playback.time_position, 0)
@SkipTest # Uses sleep and does not work with LocalBackend+DummyOutput