1
# Copyright 2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""TxLongPoll server fixture."""
11
from textwrap import dedent
13
from txlongpollfixture.server import TxLongPollFixture
14
from rabbitfixture.server import RabbitServer
17
class TxLongPollServer(TxLongPollFixture):
18
"""A TxLongPoll server fixture with Launchpad-specific config.
20
:ivar service_config: A snippet of .ini that describes the `txlongpoll`
25
super(TxLongPollServer, self).setUp()
26
self.rabbitserver = RabbitServer()
27
self.useFixture(self.rabbitserver)
28
self.config['service_config'] = dedent("""\
38
self.rabbitserver.config.port,
39
self.config['frontend_port']))