~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/longpoll/testing.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-24 09:11:33 UTC
  • mfrom: (14002.1.27 longpoll-dead-rabbit)
  • Revision ID: launchpad@pqm.canonical.com-20110924091133-9ckf4ojh50fs57si
[r=sinzui][no-qa] Make it possible for message queue using code to
 continue to work even if the queue is unavailable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
class LoggingRouter:
23
 
    """A test double for instances of `RabbitRoutingKey`.
 
23
    """A test double for `IMessageProducer`.
24
24
 
25
25
    Saves messages as `LongPollEventRecord` tuples to a log.
26
26
 
27
27
    :param log: A callable accepting a single `LongPollEventRecord`.
28
 
    :param routing_key: See `RabbitRoutingKey.__init__`.
 
28
    :param routing_key: See `IMessageSession.getProducer`.
29
29
    """
30
30
 
31
31
    def __init__(self, log, routing_key):