From 4e9de71f7d3a0618ad99072a3d3834c486cf20fb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 22 Jun 2020 18:53:43 -0400 Subject: [PATCH] use FAIL as per review fix --- irctest/server_tests/test_utf8.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/irctest/server_tests/test_utf8.py b/irctest/server_tests/test_utf8.py index b5afd5b..0c051d8 100644 --- a/irctest/server_tests/test_utf8.py +++ b/irctest/server_tests/test_utf8.py @@ -1,5 +1,4 @@ from irctest import cases -from irctest.numerics import ERR_UNKNOWNERROR class Utf8TestCase(cases.BaseServerTestCase, cases.OptionalityHelper): @cases.SpecificationSelector.requiredBySpecification('Oragono') @@ -13,10 +12,12 @@ class Utf8TestCase(cases.BaseServerTestCase, cases.OptionalityHelper): self.sendLine(1, b'PRIVMSG #qux hi\xaa') ms = self.getMessages(1) self.assertEqual(len(ms), 1) - self.assertEqual(ms[0].command, ERR_UNKNOWNERROR) + self.assertEqual(ms[0].command, 'FAIL') + self.assertEqual(ms[0].params[:2], ['PRIVMSG', 'INVALID_UTF8']) self.sendLine(1, b'@label=xyz PRIVMSG #qux hi\xaa') ms = self.getMessages(1) self.assertEqual(len(ms), 1) - self.assertEqual(ms[0].command, ERR_UNKNOWNERROR) + self.assertEqual(ms[0].command, 'FAIL') + self.assertEqual(ms[0].params[:2], ['PRIVMSG', 'INVALID_UTF8']) self.assertEqual(ms[0].tags.get('label'), 'xyz')