/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-02 23:44:24 UTC
  • mto: This revision was merged to the branch mainline in revision 6781.
  • Revision ID: jelmer@jelmer.uk-20170902234424-cuu23w9wke2ngywl
Check for plugin existing in sys.modules but being None.

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')