~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/txlongpoll/tests/test_server.py

  • Committer: Gavin Panella
  • Date: 2011-10-04 14:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 14100.
  • Revision ID: gavin.panella@canonical.com-20111004144110-wsunl2hhn303slnl
Depend on txlongpoll 0.2.8 and txlongpollfixture 0.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    def test_service_config(self):
23
23
        # TxLongPollServer pokes some .ini configuration into its
24
24
        # service_config attributes.
25
 
        txlongpoll_bin = os.path.join(config.root, 'bin/txlongpoll')
 
25
        twistd_bin = os.path.join(
 
26
            config.root, 'bin', 'twistd-for-txlongpoll')
26
27
        fixture = self.useFixture(TxLongPollServer(
27
28
            broker_user='guest', broker_password='guest', broker_vhost='/',
28
29
            broker_port=123, frontend_port=None,
29
 
            txlongpoll_bin=txlongpoll_bin))
 
30
            twistd_bin=twistd_bin))
30
31
        service_config = SafeConfigParser()
31
32
        service_config.readfp(StringIO(getattr(fixture, 'service_config')))
32
33
        self.assertEqual(["txlongpoll"], service_config.sections())