Added a test for notice and private combined.

This commit is contained in:
Jeremy Fincher 2004-04-11 23:57:30 +00:00
parent e65a7ec17c
commit 9c2611328f
1 changed files with 8 additions and 0 deletions

View File

@ -177,6 +177,14 @@ class MiscTestCase(ChannelPluginTestCase):
m = self.getMsg('notice [list]')
self.assertEqual(m.command, 'NOTICE')
def testNoticePrivate(self):
m = self.assertNotError('notice [private [list]]')
self.assertEqual(m.command, 'NOTICE')
self.assertEqual(m.args[0], self.nick)
m = self.assertNotError('private [notice [list]]')
self.assertEqual(m.command, 'NOTICE')
self.assertEqual(m.args[0], self.nick)
def testHostmask(self):
self.assertResponse('hostmask', self.prefix)