~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_plugins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-07 06:13:16 UTC
  • mfrom: (2674.1.2 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070807061316-b32atzzop4r4y21g
(Ian Clatworthy) Bazaar User Reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
                # some commands have no help
168
168
                pass
169
169
            else:
170
 
                self.assertNotContainsRe(help, 'From plugin "[^"]*"')
 
170
                self.assertNotContainsRe(help, 'plugin "[^"]*"')
171
171
 
172
172
            if cmd_name in help_commands.keys():
173
173
                # some commands are hidden
174
174
                help = help_commands[cmd_name]
175
 
                self.assertNotContainsRe(help, 'From plugin "[^"]*"')
 
175
                self.assertNotContainsRe(help, 'plugin "[^"]*"')
176
176
 
177
177
    def test_plugin_help_shows_plugin(self):
178
178
        # Create a test plugin
186
186
            bzrlib.plugin.load_from_path(['plugin_test'])
187
187
            bzrlib.commands.register_command( bzrlib.plugins.myplug.cmd_myplug)
188
188
            help = self.run_bzr('help myplug')[0]
189
 
            self.assertContainsRe(help, 'From plugin "myplug"')
 
189
            self.assertContainsRe(help, 'plugin "myplug"')
190
190
            help = self.split_help_commands()['myplug']
191
191
            self.assertContainsRe(help, '\[myplug\]')
192
192
        finally: