Rev 6505: Add test to ensure local config files are shared. in file:///home/vila/src/bzr/bugs/832042-shared-stores/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Aug 1 14:05:11 UTC 2012
At file:///home/vila/src/bzr/bugs/832042-shared-stores/
------------------------------------------------------------
revno: 6505
revision-id: v.ladeuil+lp at free.fr-20120801140511-mfi9ce053iktbzj3
parent: v.ladeuil+lp at free.fr-20120731130103-8l6oi0zzo284teyz
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 832042-shared-stores
timestamp: Wed 2012-08-01 16:05:11 +0200
message:
Add test to ensure local config files are shared.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2012-07-28 15:19:25 +0000
+++ b/bzrlib/tests/test_config.py 2012-08-01 14:05:11 +0000
@@ -4347,6 +4347,15 @@
self.assertSectionNames(['ALIASES'], self.bazaar_config, 'ALIASES')
+class TestSharedStores(tests.TestCaseInTempDir):
+
+ def test_bazaar_conf_shared(self):
+ g1 = config.GlobalStack()
+ g2 = config.GlobalStack()
+ # The two stacks share the same store
+ self.assertIs(g1.store, g2.store)
+
+
class TestAuthenticationConfigFile(tests.TestCase):
"""Test the authentication.conf file matching"""
More information about the bazaar-commits
mailing list