[Pkg-mpd-commits] [python-mpd] 176/262: stickers: add test for special case for parsing stickers output
Simon McVittie
smcv at debian.org
Sun May 22 18:16:43 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 57b2cce15e81f69cfa747b84f66c3ab06e652357
Author: Jonathan Ballet <jon at multani.info>
Date: Fri Jan 4 19:36:42 2013 +0800
stickers: add test for special case for parsing stickers output
---
test.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test.py b/test.py
index 1a73257..f216b29 100755
--- a/test.py
+++ b/test.py
@@ -310,6 +310,11 @@ class TestMPDClient(unittest.TestCase):
res = self.client._read_stickers()
self.assertEqual([('foo', 'bar'), ('l', 'b')], list(res))
+ def test_read_sticker_with_special_value(self):
+ self.MPDWillReturn("sticker: foo==uv=vu\n", "OK\n")
+ res = self.client._read_stickers()
+ self.assertEqual([('foo', '=uv=vu')], list(res))
+
def test_parse_sticket_get_one(self):
self.MPDWillReturn("sticker: foo=bar\n", "OK\n")
res = self.client.sticker_get('song', 'baz', 'foo')
--
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