From c9911da9b83479d36982ae0de19182446a149887 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <progval+git@progval.net>
Date: Fri, 9 Jul 2021 23:11:14 +0200
Subject: [PATCH] testDoubleKickMessages: Also test with a single chan

---
 irctest/server_tests/test_channel_operations.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/irctest/server_tests/test_channel_operations.py b/irctest/server_tests/test_channel_operations.py
index 5e03409..384a1d8 100644
--- a/irctest/server_tests/test_channel_operations.py
+++ b/irctest/server_tests/test_channel_operations.py
@@ -609,8 +609,9 @@ class JoinTestCase(cases.BaseServerTestCase):
         # should return ERR_NOSUCHCHANNEL
         self.assertMessageMatch(m, command="403")
 
+    @pytest.mark.parametrize("multiple_targets", [True, False])
     @cases.mark_specifications("RFC2812")
-    def testDoubleKickMessages(self):
+    def testDoubleKickMessages(self, multiple_targets):
         """“The server MUST NOT send KICK messages with multiple channels or
         users to clients.  This is necessarily to maintain backward
         compatibility with old client software.”
@@ -636,7 +637,10 @@ class JoinTestCase(cases.BaseServerTestCase):
         self.getMessages(3)
         self.getMessages(4)
 
-        self.sendLine(1, "KICK #chan,#chan bar,baz :bye")
+        if multiple_targets:
+            self.sendLine(1, "KICK #chan,#chan bar,baz :bye")
+        else:
+            self.sendLine(1, "KICK #chan bar,baz :bye")
         try:
             m = self.getMessage(1)
             if m.command == "482":