]> kaliko git repositories - python-musicpd.git/commitdiff
Add test for two worded commands (ie. "tagtypes clear")
authorKaliko Jack <kaliko@azylum.org>
Fri, 29 Oct 2021 13:49:12 +0000 (15:49 +0200)
committerKaliko Jack <kaliko@azylum.org>
Fri, 29 Oct 2021 13:49:12 +0000 (15:49 +0200)
test.py

diff --git a/test.py b/test.py
index 840bd4730dd03fd76c18677ba1fa876842e20a12..70ac203ccdfdcd69696bbe9607b9fb2283937a54 100755 (executable)
--- 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):