mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added test to make sure MODEs came before PRIVMSGs.
This commit is contained in:
parent
50d777e41f
commit
6712760e5b
@ -115,6 +115,17 @@ class IrcMsgQueueTestCase(unittest.TestCase):
|
||||
self.assertEqual(self.topic, q.dequeue())
|
||||
self.assertEqual(self.msg, q.dequeue())
|
||||
|
||||
def testModeBeforePrivmsg(self):
|
||||
q = irclib.IrcMsgQueue()
|
||||
q.enqueue(self.msg)
|
||||
q.enqueue(self.mode)
|
||||
self.assertEqual(self.mode, q.dequeue())
|
||||
self.assertEqual(self.msg, q.dequeue())
|
||||
q.enqueue(self.mode)
|
||||
q.enqueue(self.msg)
|
||||
self.assertEqual(self.mode, q.dequeue())
|
||||
self.assertEqual(self.msg, q.dequeue())
|
||||
|
||||
|
||||
class ChannelStateTestCase(unittest.TestCase):
|
||||
def testPickleCopy(self):
|
||||
|
Loading…
Reference in New Issue
Block a user