/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_config.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from testtools import matchers
26
26
 
27
 
from brzlib import (
 
27
from breezy import (
28
28
    branch,
29
29
    config,
30
30
    controldir,
39
39
    tests,
40
40
    trace,
41
41
    )
42
 
from brzlib.symbol_versioning import (
 
42
from breezy.symbol_versioning import (
43
43
    deprecated_in,
44
44
    )
45
 
from brzlib.transport import remote as transport_remote
46
 
from brzlib.tests import (
 
45
from breezy.transport import remote as transport_remote
 
46
from breezy.tests import (
47
47
    features,
48
48
    scenarios,
49
49
    test_server,
50
50
    )
51
 
from brzlib.util.configobj import configobj
 
51
from breezy.util.configobj import configobj
52
52
 
53
53
 
54
54
def lockable_config_scenarios():
239
239
#subdirs will match but not the parent
240
240
[/a/c]
241
241
check_signatures=ignore
242
 
post_commit=brzlib.tests.test_config.post_commit
 
242
post_commit=breezy.tests.test_config.post_commit
243
243
#testing explicit beats globs
244
244
"""
245
245
 
1657
1657
 
1658
1658
    def test_post_commit_default(self):
1659
1659
        self.get_branch_config('/a/c')
1660
 
        self.assertEqual('brzlib.tests.test_config.post_commit',
 
1660
        self.assertEqual('breezy.tests.test_config.post_commit',
1661
1661
                         self.applyDeprecated(deprecated_in((2, 5, 0)),
1662
1662
                                              self.my_config.post_commit))
1663
1663
 
1813
1813
                                      location='/a/c',
1814
1814
                                      location_config=sample_branches_text)
1815
1815
        self.assertEqual(my_config.branch.base, '/a/c')
1816
 
        self.assertEqual('brzlib.tests.test_config.post_commit',
 
1816
        self.assertEqual('breezy.tests.test_config.post_commit',
1817
1817
                         self.applyDeprecated(deprecated_in((2, 5, 0)),
1818
1818
                                              my_config.post_commit))
1819
1819
        my_config.set_user_option('post_commit', 'rmtree_root')
1820
1820
        # post-commit is ignored when present in branch data
1821
 
        self.assertEqual('brzlib.tests.test_config.post_commit',
 
1821
        self.assertEqual('breezy.tests.test_config.post_commit',
1822
1822
                         self.applyDeprecated(deprecated_in((2, 5, 0)),
1823
1823
                                              my_config.post_commit))
1824
1824
        my_config.set_user_option('post_commit', 'rmtree_root',
4869
4869
 
4870
4870
    def test_register_lazy(self):
4871
4871
        r = config.CredentialStoreRegistry()
4872
 
        r.register_lazy("stub", "brzlib.tests.test_config",
 
4872
        r.register_lazy("stub", "breezy.tests.test_config",
4873
4873
                        "StubCredentialStore", fallback=False)
4874
4874
        self.assertEqual(["stub"], r.keys())
4875
4875
        self.assertIsInstance(r.get_credential_store("stub"),