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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:06:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521180619-5qoo0470asgdnljt
Fix more tests (all?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        stream = StringIO()
248
248
        try:
249
249
            handler = logging.StreamHandler(stream)
250
 
            log = logging.getLogger('bzr')
 
250
            log = logging.getLogger('brz')
251
251
            log.addHandler(handler)
252
252
            try:
253
253
                try:
293
293
 
294
294
    def test_plugin_with_bad_name_does_not_load(self):
295
295
        # The file name here invalid for a python module.
296
 
        name = 'bzr-bad plugin-name..py'
 
296
        name = 'brz-bad plugin-name..py'
297
297
        file(name, 'w').close()
298
298
        log = self.load_and_capture(name)
299
299
        self.assertContainsRe(log,
300
 
            r"Unable to load 'bzr-bad plugin-name\.' in '\.' as a plugin "
 
300
            r"Unable to load 'brz-bad plugin-name\.' in '\.' as a plugin "
301
301
            "because the file path isn't a valid module name; try renaming "
302
302
            "it to 'bad_plugin_name_'\.")
303
303