~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_export_pot.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-30 11:38:14 UTC
  • mfrom: (6177.1.3 plugin-test-failure)
  • Revision ID: pqm@pqm.ubuntu.com-20110930113814-wx234nvgegu0l5tx
(jr) only run test if plugins are loaded (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib import ignores, osutils
22
22
from bzrlib.tests import TestCaseWithMemoryTransport
23
 
 
 
23
from bzrlib.tests.features import ModuleAvailableFeature
24
24
 
25
25
class TestExportPot(TestCaseWithMemoryTransport):
26
26
 
31
31
                                   "msgid \"Select changes introduced by the specified revision.")
32
32
 
33
33
    def test_export_pot_plugin(self):
 
34
        self.requireFeature(ModuleAvailableFeature('bzrlib.plugins.launchpad'))
34
35
        out, err = self.run_bzr("export-pot --plugin=launchpad")
35
36
        self.assertContainsRe(err, 'Exporting messages from plugin command: launchpad-login in launchpad')
36
37
        self.assertContainsRe(out, 'msgid "Show or set the Launchpad user ID."')