Skip to content

Commit

Permalink
strengthen comparison to equality
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Jun 9, 2024
1 parent 6f91d44 commit 95be939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irctest/server_tests/chmodes/modeis.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def testChannelModeIs(self):

self.sendLine("chanop", "MODE #chan")
messages = self.getMessages("chanop")
self.assertLessEqual(expected_numerics, {msg.command for msg in messages})
self.assertEqual(expected_numerics, {msg.command for msg in messages})
for message in messages:
if message.command == RPL_CHANNELMODEIS:
# the final parameters are the mode string (e.g. `+int`),
Expand All @@ -54,7 +54,7 @@ def testChannelModeIs(self):

self.sendLine("chanop", "MODE #chan")
messages = self.getMessages("chanop")
self.assertLessEqual(expected_numerics, {msg.command for msg in messages})
self.assertEqual(expected_numerics, {msg.command for msg in messages})
# all modes have been disabled; the correct representation of this is `+`
for message in messages:
if message.command == RPL_CHANNELMODEIS:
Expand Down

0 comments on commit 95be939

Please sign in to comment.