Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test: meaningful desc. if command not implemented

  • Loading branch information...
commit 746cdb8ac2efc8450dca9b6e94ccf79ec921e405 1 parent 966bf48
@multani multani authored committed
Showing with 13 additions and 4 deletions.
  1. +13 −4 test.py
View
17 test.py
@@ -39,6 +39,9 @@ def 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 @@ def test_commands_list(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.