~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1670
1670
            'password ignored in section \[ssh with password\]')
1671
1671
 
1672
1672
    def test_uses_fallback_stores(self):
1673
 
        self.addAttrCleanup(config, 'credential_store_registry')
1674
 
        config.credential_store_registry = config.CredentialStoreRegistry()
 
1673
        self.overrideAttr(config, 'credential_store_registry',
 
1674
                          config.CredentialStoreRegistry())
1675
1675
        store = StubCredentialStore()
1676
1676
        store.add_credentials("http", "example.com", "joe", "secret")
1677
1677
        config.credential_store_registry.register("stub", store, fallback=True)