From 136e65eb13b680a2e76f4e5c0b6265631c210039 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Wed, 10 May 2017 08:39:47 +1000 Subject: [PATCH] chanops: Remove not-too-useful TOPIC test on setting mode? --- irctest/server_tests/test_channel_operations.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/irctest/server_tests/test_channel_operations.py b/irctest/server_tests/test_channel_operations.py index ea6c282..2280dca 100644 --- a/irctest/server_tests/test_channel_operations.py +++ b/irctest/server_tests/test_channel_operations.py @@ -192,15 +192,8 @@ class JoinTestCase(cases.BaseServerTestCase): self.getMessages(1) self.sendLine(1, 'MODE #chan +t') - try: - m = self.getMessage(1) - if m.command == '482': - raise runner.ImplementationChoice( - 'Channel creators are not opped by default.') - self.assertMessageEqual(m, command='TOPIC') - except client_mock.NoMessageException: - # The RFCs do not say TOPIC must be echoed - pass + self.getMessages(1) + self.sendLine(2, 'TOPIC #chan :T0P1C') m = self.getMessage(2) self.assertMessageEqual(m, command='482',