[Pkg-mpd-commits] [python-mpd] 248/262: add test for duplicated tags
Simon McVittie
smcv at debian.org
Sun May 22 18:16:54 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 eccee96f1b8ec12c4ce20cccb9e0d9e75fc3fe7a
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Thu Apr 30 12:35:57 2015 +0200
add test for duplicated tags
---
test.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test.py b/test.py
index bcfc80c..453dcba 100755
--- a/test.py
+++ b/test.py
@@ -84,6 +84,13 @@ class TestMPDClient(unittest.TestCase):
self.assertTrue(hasattr(self.client, "fetch_close"))
self.assertTrue(hasattr(self.client, "send_close"))
+ def test_duplicate_tags(self):
+ self.MPDWillReturn('Track: file1\n', 'Track: file2\n', 'OK\n')
+ song = self.client.currentsong()
+ self.assertIsInstance(song, dict)
+ self.assertIsInstance(song["track"], list)
+ self.assertMPDReceived('currentsong\n')
+
def test_fetch_nothing(self):
self.MPDWillReturn('OK\n', 'OK\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