mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 06:49:47 +00:00
update relaymsg test
This commit is contained in:
@ -4,6 +4,7 @@ from irctest.server_tests.test_chathistory import CHATHISTORY_CAP, EVENT_PLAYBAC
|
|||||||
|
|
||||||
|
|
||||||
RELAYMSG_CAP = 'draft/relaymsg'
|
RELAYMSG_CAP = 'draft/relaymsg'
|
||||||
|
RELAYMSG_TAG_NAME = 'draft/relaymsg'
|
||||||
|
|
||||||
class RelaymsgTestCase(cases.BaseServerTestCase):
|
class RelaymsgTestCase(cases.BaseServerTestCase):
|
||||||
|
|
||||||
@ -62,7 +63,7 @@ class RelaymsgTestCase(cases.BaseServerTestCase):
|
|||||||
self.assertMessageEqual(response, nick='smt/discord', command='PRIVMSG', params=[chname, 'hi a third time'])
|
self.assertMessageEqual(response, nick='smt/discord', command='PRIVMSG', params=[chname, 'hi a third time'])
|
||||||
relayed_msg = self.getMessages('baz')[0]
|
relayed_msg = self.getMessages('baz')[0]
|
||||||
self.assertMessageEqual(relayed_msg, nick='smt/discord', command='PRIVMSG', params=[chname, 'hi a third time'])
|
self.assertMessageEqual(relayed_msg, nick='smt/discord', command='PRIVMSG', params=[chname, 'hi a third time'])
|
||||||
self.assertEqual(relayed_msg.tags.get('relaymsg'), 'qux')
|
self.assertEqual(relayed_msg.tags.get(RELAYMSG_TAG_NAME), 'qux')
|
||||||
|
|
||||||
self.sendLine('baz', 'CHATHISTORY LATEST %s * 10' % (chname,))
|
self.sendLine('baz', 'CHATHISTORY LATEST %s * 10' % (chname,))
|
||||||
messages = self.getMessages('baz')
|
messages = self.getMessages('baz')
|
||||||
|
Reference in New Issue
Block a user