def test_raw_command(self): self.assertEquals('COMMAND param1 param2 :body_of_message', irc.raw_command('COMMAND', ('param1', 'param2'), 'body_of_message'))
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'))
def test_raw_command(self): self.assertEquals( 'COMMAND param1 param2 :body_of_message', irc.raw_command('COMMAND', ('param1', 'param2'), 'body_of_message'))