channels: No-topic numeric isn't required after joining a channel, it's optional

This commit is contained in:
Daniel Oaks 2017-10-04 18:48:38 +10:00
parent 463733c772
commit 59d5d2c76e

View File

@ -34,8 +34,6 @@ class JoinTestCase(cases.BaseServerTestCase):
self.assertTrue(expected_commands.issubset(received_commands), self.assertTrue(expected_commands.issubset(received_commands),
'Server sent {} commands, but at least {} were expected.' 'Server sent {} commands, but at least {} were expected.'
.format(received_commands, expected_commands)) .format(received_commands, expected_commands))
self.assertTrue(received_commands & {'331', '332'} != set(), # RPL_NOTOPIC, RPL_TOPIC
'Server sent neither 331 (RPL_NOTOPIC) or 332 (RPL_TOPIC)')
@cases.SpecificationSelector.requiredBySpecification('RFC2812') @cases.SpecificationSelector.requiredBySpecification('RFC2812')
def testJoinNamreply(self): def testJoinNamreply(self):