File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
irctest/server_tests/chmodes Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ def testChannelOperatorMode(self):
44
44
# sender is a chanop, but target nick does not exist:
45
45
self .sendLine ("chanop" , "MODE #chan +o nobody" )
46
46
messages = self .getMessages ("chanop" )
47
- self .assertEqual (len (messages ), 1 )
48
- self .assertIn (messages [0 ].command , [ERR_NOSUCHNICK , ERR_USERNOTINCHANNEL ])
47
+ # ERR_NOSUCHNICK is typical, Bahamut additionally sends ERR_USERNOTINCHANNEL
48
+ self .assertGreaterEqual (len (messages ), 1 )
49
+ self .assertLessEqual (len (messages ), 2 )
50
+ for message in messages :
51
+ self .assertIn (message .command , [ERR_NOSUCHNICK , ERR_USERNOTINCHANNEL ])
49
52
50
53
# target channel does not exist, but target nick does:
51
54
self .sendLine ("chanop" , "MODE #nonexistentchan +o chanop" )
You can’t perform that action at this time.
0 commit comments