account_tag: Fix/proofread assertions.

This commit is contained in:
Valentin Lorentz 2021-02-24 18:55:19 +01:00
parent 2bd5093df9
commit 79399e5c99

View File

@ -44,22 +44,22 @@ class AccountTagTestCase(cases.BaseServerTestCase, cases.OptionalityHelper):
m = self.getMessage(1) m = self.getMessage(1)
self.assertMessageEqual( self.assertMessageEqual(
m, m,
command="PRIVMSG", # RPL_MONONLINE command="PRIVMSG",
fail_msg="Sent non-730 (RPL_MONONLINE) message after " params=["foo", "hi"],
"“bar” sent a PRIVMSG: {msg}", fail_msg="Expected a private PRIVMSG from 'bar', got: {msg}",
) )
self.assertIn( self.assertIn(
"account", "account",
m.tags, m.tags,
m, m,
fail_msg="PRIVMSG by logged in nick " fail_msg="PRIVMSG by logged-in nick "
"does not contain an account tag: {msg}", "does not contain an account tag: {msg}",
) )
self.assertEqual( self.assertEqual(
m.tags["account"], m.tags["account"],
"jilles", "jilles",
m, m,
fail_msg="PRIVMSG by logged in nick " fail_msg="PRIVMSG by logged-in nick "
"does not contain the correct account tag (should be " "does not contain the correct account tag (should be "
"“jilles”): {msg}", "“jilles”): {msg}",
) )