Remove strip_first_param argument, it's unused.

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

View File

@ -78,7 +78,6 @@ class _IrcTestCase(unittest.TestCase):
nick=None,
fail_msg=None,
extra_format=(),
strip_first_param=False,
**kwargs,
):
"""Helper for partially comparing a message.
@ -90,8 +89,6 @@ class _IrcTestCase(unittest.TestCase):
`subparams`, and `target` are given."""
fail_msg = fail_msg or "{msg}"
for (key, value) in kwargs.items():
if strip_first_param and key == "params":
value = value[1:]
self.assertEqual(
getattr(msg, key), value, msg, fail_msg, extra_format=extra_format
)