testUnsetTopicResponses: Also check the TOPIC command is forwarded when unsetting the topic

This commit is contained in:
Valentin Lorentz 2021-07-11 17:13:31 +02:00
parent 77272f83fb
commit 4fb7ebcd2c

View File

@ -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)