mirror of
https://github.com/progval/irctest.git
synced 2025-04-07 15:59:49 +00:00
add a regression test for ergochat/ergo#1928
LIST on a nonexistent channel does not get an error response.
This commit is contained in:
committed by
Val Lorentz
parent
a15025a276
commit
c0af9bc0a8
@ -105,6 +105,26 @@ class ListTestCase(_BasedListTestCase):
|
||||
"or 323 (RPL_LISTEND), or but: {msg}",
|
||||
)
|
||||
|
||||
@cases.mark_specifications("RFC1459", "RFC2812")
|
||||
@cases.xfailIfSoftware(
|
||||
["Charybdis", "Solanum"],
|
||||
"Charybdis and Solanum insert ERR_NOSUCHNICK reply in LIST",
|
||||
)
|
||||
def testListNonexistent(self):
|
||||
"""LIST on a nonexistent channel does not send an error
|
||||
response.
|
||||
<https://tools.ietf.org/html/rfc1459#section-4.2.6>
|
||||
<https://tools.ietf.org/html/rfc2812#section-3.2.6>
|
||||
"""
|
||||
self.connectClient("bar")
|
||||
self.sendLine(1, "LIST #nonexistent")
|
||||
responses = {msg.command for msg in self.getMessages(1)}
|
||||
# successful response MUST include RPL_LISTEND:
|
||||
self.assertIn(RPL_LISTEND, responses)
|
||||
# and MUST NOT include RPL_LIST (since there is no matching channel)
|
||||
# or any error numerics:
|
||||
self.assertLessEqual(responses, {RPL_LISTSTART, RPL_LISTEND})
|
||||
|
||||
@cases.mark_isupport("ELIST")
|
||||
@cases.mark_specifications("Modern")
|
||||
def testListMask(self):
|
||||
|
Reference in New Issue
Block a user