27
27
def test_export_pot(self):
28
28
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"\
31
"msgid \"Select changes introduced by the specified revision.")
29
self.assertContainsRe(err, b'Exporting messages from builtin command: add')
30
self.assertContainsRe(out, b"help of 'change' option\n"\
31
b"msgid \"Select changes introduced by the specified revision.")
33
33
def test_export_pot_plugin_unknown(self):
34
34
out, err = self.run_bzr("export-pot --plugin=lalalala", retcode=3)
35
35
self.assertContainsRe(
36
err, 'ERROR: Plugin lalalala is not loaded')
36
err, b'ERROR: Plugin lalalala is not loaded')
38
38
def test_export_pot_plugin(self):
39
39
self.requireFeature(PluginLoadedFeature('launchpad'))
40
40
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."')
41
self.assertContainsRe(err, b'Exporting messages from plugin command: launchpad-login in launchpad')
42
self.assertContainsRe(out, b'msgid "Show or set the Launchpad user ID."')