/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: Canonical.com Patch Queue Manager
  • Date: 2008-03-18 20:00:38 UTC
  • mfrom: (3290.1.2 bzr.dev.plugins)
  • Revision ID: pqm@pqm.ubuntu.com-20080318200038-jo7mqokvib9aojt9
(James Westby) Strip "bzr_" from the start of the suggested plugin
 name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
 
192
192
    def test_plugin_with_bad_name_does_not_load(self):
193
193
        # Create badly-named plugin
194
 
        file('bad plugin-name..py', 'w').close()
 
194
        file('bzr-bad plugin-name..py', 'w').close()
195
195
 
196
196
        # Capture output
197
197
        stream = StringIO()
207
207
        log.removeHandler(handler)
208
208
 
209
209
        self.assertContainsRe(stream.getvalue(),
210
 
            r"Unable to load 'bad plugin-name\.' in '\.' as a plugin because"
211
 
            " file path isn't a valid module name; try renaming it to"
212
 
            " 'bad_plugin_name_'\.")
 
210
            r"Unable to load 'bzr-bad plugin-name\.' in '\.' as a plugin "
 
211
            "because the file path isn't a valid module name; try renaming "
 
212
            "it to 'bad_plugin_name_'\.")
213
213
 
214
214
        stream.close()
215
215