/breezy/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/trunk

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from breezy import ignores, osutils
22
22
from breezy.tests import TestCaseWithMemoryTransport
23
 
from breezy.tests.features import ModuleAvailableFeature
 
23
from breezy.tests.features import PluginLoadedFeature
24
24
 
25
25
class TestExportPot(TestCaseWithMemoryTransport):
26
26
 
30
30
        self.assertContainsRe(out, "help of 'change' option\n"\
31
31
                                   "msgid \"Select changes introduced by the specified revision.")
32
32
 
 
33
    def test_export_pot_plugin_unknown(self):
 
34
        out, err = self.run_bzr("export-pot --plugin=lalalala", retcode=3)
 
35
        self.assertContainsRe(
 
36
             err, 'ERROR: Plugin lalalala is not loaded')
 
37
 
33
38
    def test_export_pot_plugin(self):
34
 
        self.requireFeature(ModuleAvailableFeature('breezy.plugins.launchpad'))
 
39
        self.requireFeature(PluginLoadedFeature('launchpad'))
35
40
        out, err = self.run_bzr("export-pot --plugin=launchpad")
36
41
        self.assertContainsRe(err, 'Exporting messages from plugin command: launchpad-login in launchpad')
37
42
        self.assertContainsRe(out, 'msgid "Show or set the Launchpad user ID."')