diff --git a/irctest/server_tests/test_user_commands.py b/irctest/server_tests/test_user_commands.py index c185885..6b858c8 100644 --- a/irctest/server_tests/test_user_commands.py +++ b/irctest/server_tests/test_user_commands.py @@ -29,7 +29,7 @@ class WhoisTestCase(cases.BaseServerTestCase): self.assertEqual(whois_user.command, RPL_WHOISUSER) # " * :" self.assertEqual(whois_user.params[1], nick) - self.assertEqual(whois_user.params[2], '~' + username) + self.assertIn(whois_user.params[2], ('~' + username, '~' + username[0:9])) # dumb regression test for oragono/oragono#355: self.assertNotIn(whois_user.params[3], [nick, username, '~' + username, realname]) self.assertEqual(whois_user.params[5], realname)