[Pkg-mpd-commits] [python-mpd] 121/262: test.py test unicode in command args
Simon McVittie
smcv at debian.org
Sun May 22 18:16:35 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 c3437234be460c6d9ac5b6d71313fe00e4f4a96e
Author: Jörg Thalheim <jthalheim at gmail.com>
Date: Tue Mar 20 22:14:08 2012 +0100
test.py test unicode in command args
This still fails for python2.7 and below.
---
test.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test.py b/test.py
index f739f7d..a864df0 100755
--- a/test.py
+++ b/test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
import types
import sys
@@ -149,5 +150,8 @@ class TestMPDClient(unittest.TestCase):
"This either means the command list is wrong or mpd is not up-to-date."
self.assertFalse(imple_cmds - avaible_cmds, long_desc)
+ def test_unicode_in_command_args(self):
+ self.assertIsInstance(self.client.find("file", "☯☾☝♖✽"), list)
+
if __name__ == '__main__':
unittest.main()
--
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