示例#1
0
 def test_raw_command(self):
     self.assertEquals('COMMAND param1 param2 :body_of_message',
                       irc.raw_command('COMMAND', ('param1', 'param2'),
                                       'body_of_message'))
示例#2
0
 def test_any_command(self):
     self.assertEquals('foobar', irc.any_command('foobar'))
     self.assertEquals(irc.raw_command('COMMAND', 'param', 'body'),
                       irc.any_command('COMMAND', 'param', 'body'))
示例#3
0
 def test_any_command(self):
     self.assertEquals('foobar', irc.any_command('foobar'))
     self.assertEquals(irc.raw_command('COMMAND', 'param', 'body'),
                       irc.any_command('COMMAND', 'param', 'body'))
示例#4
0
 def test_raw_command(self):
     self.assertEquals(
         'COMMAND param1 param2 :body_of_message',
         irc.raw_command('COMMAND', ('param1', 'param2'),
                         'body_of_message'))