test casefolding of nickname targets

This commit is contained in:
Shivaram Lingamneni
2020-02-28 03:52:35 -05:00
parent dcec0a48ce
commit 957e7ce1fd
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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')