/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

Support user.signingkey configuration variable in .git/config.

Merged from https://code.launchpad.net/~jelmer/brz/local-git-key/+merge/381000

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Tests for plugins"""
19
19
 
20
20
import importlib
21
 
from io import StringIO
22
21
import logging
23
22
import os
24
23
import sys
31
30
    tests,
32
31
    )
33
32
from ..tests.features import pkg_resources_feature
 
33
from ..sixish import (
 
34
    StringIO,
 
35
    viewkeys,
 
36
    )
34
37
 
35
38
 
36
39
# TODO: Write a test for plugin decoration of commands.
298
301
        log = self.load_and_capture(name)
299
302
        self.assertNotContainsRe(log,
300
303
                                 r"It supports breezy version")
301
 
        self.assertEqual({'wants100'}, self.plugin_warnings.keys())
 
304
        self.assertEqual({'wants100'}, viewkeys(self.plugin_warnings))
302
305
        self.assertContainsRe(
303
306
            self.plugin_warnings['wants100'][0],
304
307
            r"It supports breezy version")
697
700
        self.create_plugin_package('ugly')
698
701
        self.overrideEnv('BRZ_DISABLE_PLUGINS', 'bad:ugly')
699
702
        self.load_with_paths(['.'])
700
 
        self.assertEqual({'good'}, self.plugins.keys())
 
703
        self.assertEqual({'good'}, viewkeys(self.plugins))
701
704
        self.assertPluginModules({
702
705
            'good': self.plugins['good'].module,
703
706
            'bad': None,