'L{IRCClient.invite} sends an I{INVITE} message with the specified
username and a channel.'

def test_invite(self):

    self.client.invite('foo', '#bar')
    self.assertEqual(self.client.lines, ['INVITE    foo    #bar'])
