'An instance of the L{irc.DccChat} protocol is returned, which has the
factory property set to the factory which created it.'

def test_buildProtocol(self):

    queryData = ('fromUser', None, None)
    factory = irc.DccChatFactory(None, queryData)
    protocol = factory.buildProtocol('127.0.0.1')
    self.assertIsInstance(protocol, irc.DccChat)
    self.assertEqual(protocol.factory, factory)
