'Testing CTCP query ERRMSG.
Not because this is this is an especially important case in the
field, but it does go through the entire dispatch/decode/encode
process.'

def test_ERRMSG(self):

    errQuery = (':nick!guy@over.there    PRIVMSG    #theChan    :%(X)cERRMSG    t%(X)c%(EOL)s' % {'X': irc.X_DELIM, 'EOL': (irc.CR + irc.LF)})
    errReply = ('NOTICE    nick    :%(X)cERRMSG    t    :No    error    has    occurred.%(X)c%(EOL)s' % {'X': irc.X_DELIM, 'EOL': (irc.CR + irc.LF)})
    self.client.dataReceived(errQuery)
    reply = self.file.getvalue()
    self.assertEqualBufferValue(reply, errReply)
