/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_plugins.py

  • Committer: Aaron Bentley
  • Date: 2008-10-21 14:08:31 UTC
  • mto: This revision was merged to the branch mainline in revision 3789.
  • Revision ID: aaron@aaronbentley.com-20081021140831-a8sqdr5sg8y82z4e
Switch from dict to Registry for plugin_cmds

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
            self.assertContainsRe(help, '\[myplug\]')
413
413
        finally:
414
414
            # unregister command
415
 
            if bzrlib.commands.plugin_cmds.get('myplug', None):
416
 
                del bzrlib.commands.plugin_cmds['myplug']
 
415
            if 'myplug' in bzrlib.commands.plugin_cmds:
 
416
                bzrlib.commands.plugin_cmds.remove('myplug')
417
417
            # remove the plugin 'myplug'
418
418
            if getattr(bzrlib.plugins, 'myplug', None):
419
419
                delattr(bzrlib.plugins, 'myplug')