mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 07:19:54 +00:00
account_tag: Fix/proofread assertions.
This commit is contained in:
@ -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}",
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user