diff --git a/tests/frontends/mpd/playback_test.py b/tests/frontends/mpd/playback_test.py index d347308c..a1331bb3 100644 --- a/tests/frontends/mpd/playback_test.py +++ b/tests/frontends/mpd/playback_test.py @@ -277,6 +277,13 @@ class PlaybackControlHandlerTest(unittest.TestCase): self.assert_(u'OK' in result) self.assert_(self.b.playback.time_position >= 30000) + def test_seek_with_songpos(self): + seek_track = Track(uri='2', length=40000) + self.b.current_playlist.load( + [Track(uri='1', length=40000), seek_track]) + result = self.h.handle_request(u'seek "1" "30"') + self.assertEqual(self.b.playback.current_track, seek_track) + def test_seekid(self): self.b.current_playlist.load([Track(length=40000)]) result = self.h.handle_request(u'seekid "1" "30"')