~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Vincent Ladeuil
  • Date: 2012-08-01 14:05:11 UTC
  • mto: This revision was merged to the branch mainline in revision 6554.
  • Revision ID: v.ladeuil+lp@free.fr-20120801140511-mfi9ce053iktbzj3
Add test to ensure local config files are shared.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4347
4347
        self.assertSectionNames(['ALIASES'], self.bazaar_config, 'ALIASES')
4348
4348
 
4349
4349
 
 
4350
class TestSharedStores(tests.TestCaseInTempDir):
 
4351
 
 
4352
    def test_bazaar_conf_shared(self):
 
4353
        g1 = config.GlobalStack()
 
4354
        g2 = config.GlobalStack()
 
4355
        # The two stacks share the same store
 
4356
        self.assertIs(g1.store, g2.store)
 
4357
 
 
4358
 
4350
4359
class TestAuthenticationConfigFile(tests.TestCase):
4351
4360
    """Test the authentication.conf file matching"""
4352
4361