/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: Martin Pool
  • Date: 2011-01-18 00:21:46 UTC
  • mto: This revision was merged to the branch mainline in revision 5630.
  • Revision ID: mbp@canonical.com-20110118002146-twtns72d5rajulf9
Include plugin warnings in apport crash

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
    def test_plugin_with_bad_api_version_reports(self):
270
270
        # This plugin asks for bzrlib api version 1.0.0, which is not supported
271
271
        # anymore.
272
 
        self.overrideAttr(plugin, 'plugin_version_warnings', {})
 
272
        self.overrideAttr(plugin, 'plugin_warnings', {})
273
273
        name = 'wants100.py'
274
274
        f = file(name, 'w')
275
275
        try:
282
282
            r"It requested API version")
283
283
        self.assertEquals(
284
284
            ['wants100'],
285
 
            plugin.plugin_version_warnings.keys())
 
285
            plugin.plugin_warnings.keys())
286
286
        self.assertContainsRe(
287
 
            plugin.plugin_version_warnings['wants100'],
 
287
            plugin.plugin_warnings['wants100'],
288
288
            r"It requested API version")
289
289
 
290
290
    def test_plugin_with_bad_name_does_not_load(self):