LIST: make RPL_LISTSTART optional (as it is today)

This commit is contained in:
Daniel Oaks 2016-11-30 01:40:03 +10:00
parent ca8b3cf625
commit c6663bc9b6

View File

@ -233,10 +233,9 @@ class JoinTestCase(cases.BaseServerTestCase):
self.getMessages(1) self.getMessages(1)
self.sendLine(2, 'LIST') self.sendLine(2, 'LIST')
m = self.getMessage(2) m = self.getMessage(2)
self.assertMessageEqual(m, command='321', # RPL_LISTSTART if m.command == '321':
fail_msg='First reply to LIST is not 321 (RPL_LISTSTART), ' # skip RPL_LISTSTART
'but: {msg}') m = self.getMessage(2)
m = self.getMessage(2)
self.assertNotEqual(m.command, '322', # RPL_LIST self.assertNotEqual(m.command, '322', # RPL_LIST
'LIST response gives (at least) one channel, whereas there ' 'LIST response gives (at least) one channel, whereas there '
'is none.') 'is none.')
@ -256,10 +255,9 @@ class JoinTestCase(cases.BaseServerTestCase):
self.getMessages(1) self.getMessages(1)
self.sendLine(2, 'LIST') self.sendLine(2, 'LIST')
m = self.getMessage(2) m = self.getMessage(2)
self.assertMessageEqual(m, command='321', # RPL_LISTSTART if m.command == '321':
fail_msg='First reply to LIST is not 321 (RPL_LISTSTART), ' # skip RPL_LISTSTART
'but: {msg}') m = self.getMessage(2)
m = self.getMessage(2)
self.assertNotEqual(m.command, '323', # RPL_LISTEND self.assertNotEqual(m.command, '323', # RPL_LISTEND
fail_msg='LIST response ended (ie. 323, aka RPL_LISTEND) ' fail_msg='LIST response ended (ie. 323, aka RPL_LISTEND) '
'without listing any channel, whereas there is one.') 'without listing any channel, whereas there is one.')