mirror of https://github.com/progval/irctest.git
LIST: make RPL_LISTSTART optional (as it is today)
This commit is contained in:
parent
ca8b3cf625
commit
c6663bc9b6
|
@ -233,9 +233,8 @@ 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 '
|
||||||
|
@ -256,9 +255,8 @@ 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) '
|
||||||
|
|
Loading…
Reference in New Issue