From 79b0584887075eb1732770d1732ae07147ec21b6 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sat, 28 Mar 2015 00:29:24 +0100 Subject: [PATCH] tests: Stop using tracklist add tracks in mpd status test --- tests/mpd/protocol/test_status.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/mpd/protocol/test_status.py b/tests/mpd/protocol/test_status.py index 09df3526..bec54466 100644 --- a/tests/mpd/protocol/test_status.py +++ b/tests/mpd/protocol/test_status.py @@ -11,11 +11,13 @@ class StatusHandlerTest(protocol.BaseTestCase): self.assertEqualResponse('ACK [0@0] {clearerror} Not implemented') def test_currentsong(self): - track = Track() - self.core.tracklist.add([track]) + track = Track(uri='dummy:/a') + self.backend.library.dummy_library = [track] + self.core.tracklist.add(uris=[track.uri]).get() + self.core.playback.play() self.send_request('currentsong') - self.assertInResponse('file: ') + self.assertInResponse('file: dummy:/a') self.assertInResponse('Time: 0') self.assertInResponse('Artist: ') self.assertInResponse('Title: ')