aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/cogs/moderation/test_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index e54c0d240..aaa0861e5 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -59,8 +59,9 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
if case.send_msg and case.get_return_value:
self.ctx.send.assert_awaited_once()
- self.assertTrue(case.infraction_nr in self.ctx.send.call_args[0][0])
- self.assertTrue("ban" in self.ctx.send.call_args[0][0])
+ sent_message = self.ctx.send.call_args[0][0]
+ self.assertIn(case.infraction_nr, sent_message)
+ self.assertIn("ban", sent_message)
else:
self.ctx.send.assert_not_awaited()