From 957e7ce1fdfb08f68d6505501656b7517a59d268 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 28 Feb 2020 03:52:35 -0500 Subject: [PATCH] test casefolding of nickname targets --- irctest/server_tests/test_chathistory.py | 1 + irctest/server_tests/test_znc_playback.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/irctest/server_tests/test_chathistory.py b/irctest/server_tests/test_chathistory.py index 54c8081..8fefb90 100644 --- a/irctest/server_tests/test_chathistory.py +++ b/irctest/server_tests/test_chathistory.py @@ -155,6 +155,7 @@ class ChathistoryTestCase(cases.BaseServerTestCase): # additional messages with c3 should not show up in the c1-c2 history: self.validate_chathistory(echo_messages, 1, c2) self.validate_chathistory(echo_messages, 2, c1) + self.validate_chathistory(echo_messages, 2, c1.upper()) def validate_chathistory(self, echo_messages, user, chname): INCLUSIVE_LIMIT = len(echo_messages) * 2 diff --git a/irctest/server_tests/test_znc_playback.py b/irctest/server_tests/test_znc_playback.py index 0c1cd54..2ccaa06 100644 --- a/irctest/server_tests/test_znc_playback.py +++ b/irctest/server_tests/test_znc_playback.py @@ -69,6 +69,9 @@ class ZncPlaybackTestCase(cases.BaseServerTestCase): self.sendLine('viewer', 'PRIVMSG *playback :play %s %d' % (qux, early_time,)) messages = [to_history_message(msg) for msg in self.getMessages('viewer') if msg.command == 'PRIVMSG'] self.assertEqual(messages, [dm]) + self.sendLine('viewer', 'PRIVMSG *playback :play %s %d' % (qux.upper(), early_time,)) + messages = [to_history_message(msg) for msg in self.getMessages('viewer') if msg.command == 'PRIVMSG'] + self.assertEqual(messages, [dm]) self.sendLine('viewer', 'QUIT') self.assertDisconnected('viewer')