/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: Robert Collins
  • Date: 2008-04-04 00:43:07 UTC
  • mfrom: (3331 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3333.
  • Revision ID: robertc@robertcollins.net-20080404004307-0whomfhm3yal2rvw
Resolve conflicts.

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