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