'Messages exactly equal in length to the C{length} parameter to
L{IRCClient.msg} are sent in a single command.'

def test_sufficientWidth(self):

    msg = 'barbazbo'
    maxLen = (len(('PRIVMSG    foo    :%s' % (msg,))) + 2)
    self.client.msg('foo', msg, maxLen)
    self.assertEqual(self.client.lines, [('PRIVMSG    foo    :%s' % (msg,))])
    self.client.lines = []
    self.client.msg('foo', msg, (maxLen - 1))
    self.assertEqual(2, len(self.client.lines))
    self.client.lines = []
    self.client.msg('foo', msg, (maxLen + 1))
    self.assertEqual(1, len(self.client.lines))
