[Pkg-mpd-commits] [python-mpd] 129/262: test: meaningful desc. if command not implemented
Simon McVittie
smcv at debian.org
Sun May 22 18:16:36 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 746cdb8ac2efc8450dca9b6e94ccf79ec921e405
Author: Jonathan Ballet <jon at multani.info>
Date: Fri Mar 30 21:54:24 2012 +0200
test: meaningful desc. if command not implemented
---
test.py | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/test.py b/test.py
index 862e398..5c93837 100755
--- a/test.py
+++ b/test.py
@@ -39,6 +39,9 @@ setup_environment()
class TestMPDClient(unittest.TestCase):
+
+ longMessage = True
+
@classmethod
def setUpClass(self):
global TEST_MPD_HOST, TEST_MPD_PORT, TEST_MPD_PASSWORD
@@ -158,11 +161,17 @@ class TestMPDClient(unittest.TestCase):
imple_cmds = (imple_cmds - sticker_cmds)
imple_cmds.add("sticker")
imple_cmds.remove("noidle")
- self.assertFalse(avaible_cmds - imple_cmds,
+
+ self.assertEqual(set(), avaible_cmds - imple_cmds,
"Not all commands supported by mpd are implemented!")
- long_desc = "Not all commands implemented by this library are supported by the current mpd.\n" + \
- "This either means the command list is wrong or mpd is not up-to-date."
- self.assertFalse(imple_cmds - avaible_cmds, long_desc)
+
+ long_desc = (
+ "Not all commands implemented by this library are supported by "
+ "the current mpd.\n" +
+ "This either means the command list is wrong or mpd is not "
+ "up-to-date.")
+
+ self.assertEqual(set(), imple_cmds - avaible_cmds, long_desc)
def test_unicode_as_command_args(self):
if sys.version_info < (3, 0):
--
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