mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 23:09:48 +00:00
test casefolding of nickname targets
This commit is contained in:
@ -155,6 +155,7 @@ class ChathistoryTestCase(cases.BaseServerTestCase):
|
|||||||
# additional messages with c3 should not show up in the c1-c2 history:
|
# 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, 1, c2)
|
||||||
self.validate_chathistory(echo_messages, 2, c1)
|
self.validate_chathistory(echo_messages, 2, c1)
|
||||||
|
self.validate_chathistory(echo_messages, 2, c1.upper())
|
||||||
|
|
||||||
def validate_chathistory(self, echo_messages, user, chname):
|
def validate_chathistory(self, echo_messages, user, chname):
|
||||||
INCLUSIVE_LIMIT = len(echo_messages) * 2
|
INCLUSIVE_LIMIT = len(echo_messages) * 2
|
||||||
|
@ -69,6 +69,9 @@ class ZncPlaybackTestCase(cases.BaseServerTestCase):
|
|||||||
self.sendLine('viewer', 'PRIVMSG *playback :play %s %d' % (qux, early_time,))
|
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']
|
messages = [to_history_message(msg) for msg in self.getMessages('viewer') if msg.command == 'PRIVMSG']
|
||||||
self.assertEqual(messages, [dm])
|
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.sendLine('viewer', 'QUIT')
|
||||||
self.assertDisconnected('viewer')
|
self.assertDisconnected('viewer')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user