From: Kaliko Jack Date: Fri, 29 Oct 2021 13:49:12 +0000 (+0200) Subject: Add test for two worded commands (ie. "tagtypes clear") X-Git-Tag: v0.8.0~13 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=c45cc084b0543af12fe815f6dee14303eac20e2a;p=python-musicpd.git Add test for two worded commands (ie. "tagtypes clear") --- diff --git a/test.py b/test.py index 840bd47..70ac203 100755 --- a/test.py +++ b/test.py @@ -551,6 +551,13 @@ class TestMPDClient(unittest.TestCase): self.client.command_list_end() self.assertMPDReceived('command_list_end\n') + def test_two_word_commands(self): + self.MPDWillReturn('OK\n') + self.client.tagtypes_clear() + self.assertMPDReceived('tagtypes clear\n') + self.MPDWillReturn('OK\n') + with self.assertRaises(AttributeError): + self.client.foo_bar() class testConnection(unittest.TestCase):