[Pkg-mpd-commits] [python-mpd] 87/262: Clean idle mask in tests to get clean state
Simon McVittie
smcv at debian.org
Sun May 22 18:16:29 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 bd2e4e077a22ef150d0279d3b866f6fb9e571dfe
Author: Jörg Thalheim <jthalheim at gmail.com>
Date: Thu Feb 9 06:38:07 2012 +0100
Clean idle mask in tests to get clean state
---
test.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test.py b/test.py
index ec988b2..dd32ed8 100755
--- a/test.py
+++ b/test.py
@@ -56,7 +56,11 @@ class TestMPDClient(unittest.TestCase):
self.client.send_status()
self.client.fetch_status()
def test_idle(self):
+ # clean event mask
+ self.idleclient.idle()
+
self.idleclient.send_idle()
+ # new event
self.client.update()
event = self.idleclient.fetch_idle()
self.assertEqual(event, ['update'])
--
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