/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 breezy/tests/test_plugins.py

  • Committer: Jelmer Vernooij
  • Date: 2017-09-03 01:04:42 UTC
  • mfrom: (6780.1.1 export-pot)
  • Revision ID: jelmer@jelmer.uk-20170903010442-ojiteyh5twx1hol7
Merge lp:~jelmer/brz/fix-get-loaded-plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        self.assertIsInstance(p, breezy.plugin.PlugIn)
337
337
        self.assertIs(p.module, sys.modules[self.module_prefix + 'plugin'])
338
338
 
 
339
    def test_plugin_loaded_disabled(self):
 
340
        self.assertPluginUnknown('plugin')
 
341
        self.overrideEnv('BRZ_DISABLE_PLUGINS', 'plugin')
 
342
        self.setup_plugin()
 
343
        self.assertIs(None, breezy.plugin.get_loaded_plugin('plugin'))
 
344
 
339
345
    def test_plugin_appears_in_plugins(self):
340
346
        self.setup_plugin()
341
347
        self.assertPluginKnown('plugin')