[Pkg-mpd-commits] [python-mpd] 225/262: Update tests to match the changes in the last commit.

Simon McVittie smcv at debian.org
Sun May 22 18:16:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch upstream
in repository python-mpd.

commit 17369e18981480bb8466719445af1669f57080e6
Author: Michael Helmling <michaelhelmling at posteo.de>
Date:   Mon Jan 27 10:40:49 2014 +0100

    Update tests to match the changes in the last commit.
---
 test.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test.py b/test.py
index 9b4dc83..364b5df 100755
--- a/test.py
+++ b/test.py
@@ -179,7 +179,7 @@ class TestMPDClient(unittest.TestCase):
         self.MPDWillReturn('OK\n') # nothing changed after idle-ing
         self.client.send_idle()
         self.MPDWillReturn('OK\n') # nothing changed after noidle
-        self.assertIsNone(self.client.noidle())
+        self.assertEqual(self.client.noidle(), [])
         self.assertMPDReceived('noidle\n')
         self.MPDWillReturn("volume: 50\n", "OK\n")
         self.client.status()
@@ -188,9 +188,8 @@ class TestMPDClient(unittest.TestCase):
     def test_noidle_while_idle_started_sending(self):
         self.MPDWillReturn('OK\n') # nothing changed after idle-ing
         self.client.send_idle()
-        self.MPDWillReturn('CHANGED: player\n') # started to change
-        self.MPDWillReturn('OK\n') # noidle response
-        self.assertIsNone(self.client.noidle())
+        self.MPDWillReturn('changed: player\n', 'OK\n') # noidle response
+        self.assertEqual(self.client.noidle(), ['player'])
         self.MPDWillReturn("volume: 50\n", "OK\n")
         status = self.client.status()
         self.assertEqual({'volume': '50'}, status)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git



More information about the Pkg-mpd-commits mailing list