[Pkg-mpd-commits] [python-mpd] 200/262: Add a test.

Simon McVittie smcv at debian.org
Sun May 22 18:16:47 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 cba89de1ab6174b94cd42888a7bca889b6e6bc70
Author: François de Metz <francois at 2metz.fr>
Date:   Mon Apr 8 19:24:05 2013 +0200

    Add a test.
    
    Signed-off-by: François de Metz <francois at stormz.me>
---
 test.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test.py b/test.py
index 14d5f0b..5b091f0 100755
--- a/test.py
+++ b/test.py
@@ -167,6 +167,11 @@ class TestMPDClient(unittest.TestCase):
         event = self.client.fetch_idle()
         self.assertEqual(event, ['update'])
 
+    def test_noidle(self):
+        self.MPDWillReturn('OK\n') # nothing changed after idle-ing
+        self.client.send_idle()
+        self.client.noidle()
+
     def test_add_and_remove_command(self):
         self.MPDWillReturn("ACK awesome command\n")
 

-- 
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