ralphbean/fedmsg — pull request #82 by lmacken (2012-10-17 16:31:11+00:00)
Title: Feature/refactored text processors

1 test case fails:

======================================================================
FAIL: test_double_consumers (fedmsg.tests.test_hub.TestHub)
Check that two consumers can get messages.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lmacken/fedmsg/fedmsg/tests/test_hub.py", line 195, in test_double_consumers
eq_(len(messages_received), 2)
AssertionError: 0 != 2
-------------------- >> begin captured stdout << ---------------------
(,)

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
moksha.hub: INFO: Loading the Moksha Hub
moksha.hub: INFO: Loading Consumers
moksha.hub: DEBUG: Loading from entry-points.
moksha.hub: INFO: DummyConsumer consumer is watching the 'org.fedoraproject.*' topic
moksha.hub: INFO: RelayConsumer consumer is watching the 'org.fedoraproject.*' topic
moksha.hub: INFO: GatewayConsumer consumer is watching the 'org.fedoraproject.*' topic
moksha.hub: INFO: IRCBotConsumer consumer is watching the 'org.fedoraproject.*' topic
moksha.hub: INFO: Binding publish socket to 'tcp://*:8011'
moksha.hub: DEBUG: fedmsg.consumers.dummy.enabled is None
moksha.hub: INFO: * disabled by config - fedmsg.consumers.dummy:DummyConsumer
moksha.hub: WARNING: didn't initialize correctly. Did you call super(..).__init__?
moksha.hub: DEBUG: fedmsg.consumers.relay.enabled is None
moksha.hub: INFO: * disabled by config - fedmsg.consumers.relay:RelayConsumer
moksha.hub: WARNING: didn't initialize correctly. Did you call super(..).__init__?
moksha.hub: DEBUG: fedmsg.consumers.gateway.enabled is None
moksha.hub: INFO: * disabled by config - fedmsg.consumers.gateway:GatewayConsumer
moksha.hub: WARNING: didn't initialize correctly. Did you call super(..).__init__?
moksha.hub: DEBUG: fedmsg.consumers.ircbot.enabled is None
moksha.hub: INFO: * disabled by config - fedmsg.consumers.ircbot:IRCBotConsumer
moksha.hub: WARNING: didn't initialize correctly. Did you call super(..).__init__?
moksha.hub: INFO: Loading Producers
moksha.hub: DEBUG: Loading from entry-points.
moksha.hub: DEBUG: test_consumer_enabled is True
moksha.hub: INFO: enabled by config - fedmsg.tests.test_hub:TestConsumer1
moksha.hub: DEBUG: Subscribing to consumer topic org.fedoraproject.dev.unittest.foo
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8009')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8010')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8011')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8012')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8013')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8014')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8015')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8016')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8017')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://www.flugle.horn:88')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: WARNING: Failed txzmq create on "ZmqEndpoint(type='connect', address='tcp://www.flugle.horn:88')"
moksha.hub: DEBUG: test_consumer_enabled is True
moksha.hub: INFO: enabled by config - fedmsg.tests.test_hub:TestConsumer2
moksha.hub: DEBUG: Subscribing to consumer topic org.fedoraproject.dev.unittest.foo
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8009')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8010')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8011')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8012')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8013')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8014')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8015')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8016')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://*:8017')'
moksha.hub: DEBUG: Using cached txzmq factory.
moksha.hub: DEBUG: Subscribing to org.fedoraproject.dev.unittest.foo on 'ZmqEndpoint(type='connect', address='tcp://www.flugle.horn:88')'
moksha.hub: DEBUG: Creating new txzmq factory.
moksha.hub: WARNING: Failed txzmq create on "ZmqEndpoint(type='connect', address='tcp://www.flugle.horn:88')"
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 292 tests in 14.948s

FAILED (failures=1)