From 4fb7ebcd2cb07232b87900a271961659604a2cf1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 11 Jul 2021 17:13:31 +0200 Subject: [PATCH] testUnsetTopicResponses: Also check the TOPIC command is forwarded when unsetting the topic --- irctest/server_tests/test_channel_operations.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/irctest/server_tests/test_channel_operations.py b/irctest/server_tests/test_channel_operations.py index 578d0b0..ab53acd 100644 --- a/irctest/server_tests/test_channel_operations.py +++ b/irctest/server_tests/test_channel_operations.py @@ -418,6 +418,11 @@ class JoinTestCase(cases.BaseServerTestCase): # unset the topic: self.sendLine(1, "TOPIC #test :") self.getMessages(1) + # client 2 should get the new TOPIC line, which is empty + self.assertMessageMatch( + self.getMessage(2), command="TOPIC", params=["#test", ""] + ) + self.connectClient("qux") self.sendLine(3, "join #test") messages = self.getMessages(3)