'L{irc.IRCClient.dcc_CHAT} raises L{irc.IRCBadMessage} when it is
passed a malformed query string.'

def test_dccChatMalformedRequest(self):

    result = self.assertRaises(irc.IRCBadMessage, self.client.dcc_CHAT, self.user, self.channel, 'foo')
    self.assertEqual(str(result), "malformed    DCC    CHAT    request:    ['foo']")
